I want to display text on the page, the text should look like this:
<sometext>
... but when I echo this, nothing appears!!
How ca I do this?
See Question&Answers more detail:osI want to display text on the page, the text should look like this:
<sometext>
... but when I echo this, nothing appears!!
How ca I do this?
See Question&Answers more detail:osA "page" is written in HTML, so <
means "Start a tag".
You have to represent characters with special meaning in HTML using entities.
You can write them directly, or make use of the htmlspecialchars function.
echo "<sometext>";
echo htmlspecialchars("<sometext>");