I have the following code:
echo ('
<input onclick='responsiveVoice.speak("Hello World");' type='button' value=' Play'>
');
When the code is executed, I get the following error:
Parse error: syntax error, unexpected 'responsiveVoice' (T_STRING) in C:\xampp\htdocs\adiai\ai_main.php on line 70
I noticed that my IDE's colors are also getting 'mixed up'. I have a feeling that it is because of the ';' and several quotation marks within my echo statement.
How am I supposed to fix this?
Thanks!