getting PHP error

Occasional Participant

getting PHP error

Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING when trying to use Constant Contact API v2 Add/Update Contact




Normally this error is present when you have a set of mismatched single(') or double(") quotes in your PHP code. When PHP displays an error like this, it should give you a specific line number and file name where you can find the error. If you start by looking at the first few lines of code above and below the line of code specified in the error, that should help you find the mismatched quotes.



Elijah G.
API Support Engineer
Developer Portal

View API documentation, code samples, get your API key.

Visit Page