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>');";
Try this way
echo <<<END
All the text u wanna echo
u can use double and single quotes
END;
try like this..
echo "new function('<span class=\"problem\"></span>');";
i hope it will work