Echo double quotes inside double quotes issue
问题 How is that possible to use double quotes inside PHP echo double quotes? The class "problem" is a problem. echo " new function('<span class="problem"></span>');"; 回答1: try like this.. echo "new function('<span class=\"problem\"></span>');"; i hope it will work 回答2: Try this way echo <<<END All the text u wanna echo u can use double and single quotes END; 来源: https://stackoverflow.com/questions/50781770/echo-double-quotes-inside-double-quotes-issue