0
With a file PHP I’m entering code javascript. So I’m using echo'.
echo ' grammar: "\name = s:[0-9a-zA-Z]+ { return s.join(""); }\n\" ';
The problem is you’re making a mistake because inside the s.join("")
is closing with quotes from Grammar.
I can’t switch to single quotes inside the Join pq or it would close with echo. I believe I have to try to escape the quotation marks. Someone would know how to do that?
I suggest you put the code as you have it in your file, because the way it looked here in the question was not clear. It looks like you have 2
echo
but there is no;
to separate them. Anyway, escape is always with\
, so escape'
would be\'
– Isac