How to output JavaScript with PHP

前端 未结 12 1544
无人及你
无人及你 2020-11-27 06:16

I am new to PHP. I need to output the following JavaScript with PHP. This is my code:





        
12条回答
  •  死守一世寂寞
    2020-11-27 07:06

    You need to escape your quotes.

    You can do this:

    echo "
    
                                     
                  
提交回复
热议问题