1

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>');";
Gragas Incoming
  • 825
  • 1
  • 9
  • 23

2 Answers2

1

try like this..

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

i hope it will work

Shazvan Hanif
  • 371
  • 3
  • 20
0

Try this way

echo <<<END
All the text u wanna echo
u can use double and single quotes
END;
Issam Rafihi
  • 412
  • 3
  • 9