I seem to be getting the error:
PHP Parse error: syntax error, unexpected ‘(’, expecting T_VARIABLE or ‘$’
when inserting some js code in my php. I think the culprit is the curly brackets within the js, as it occurs on only the 2 lines where they appear:
… function() {$(" …
I’ve tried putting the code into <<<EOF … EOF; but makes no difference