2

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>');";

2 Answers2

0

Try this way

echo <<<END
All the text u wanna echo
u can use double and single quotes
END;
Issam Rafihi
  • 432
  • 3
  • 10
0

try like this..

echo "new function('<span class=\"problem\"></span>');";

i hope it will work

Shazvan Hanif
  • 361
  • 3
  • 20