I have encountered this problem while learning PHP. I checked Stackoverflow and google, but could not find an answer.
Here is my simple php:
<?php
echo "<html>" . "\n";
echo 'Hello' . "\n";
echo "</html>" . "\n";
?>
When I run this on Linux command line, it produced a result I wanted:
<html>
Hello
</html>
With this, I called this php from a browser on web, and expected to see
detect
in the browser. However, I got
" ."\n"; echo 'hello ' . "\n"; echo "" . "\n"; ?>
I tried in a few different browsers, they all produced the same result.
I am afraid that I have missed some PHP fundamentals to get this problem, haven't I?