I am new to PHP. I need to output the following JavaScript with PHP. This is my code:
You need to escape your quotes.
You can do this:
echo "