I want to display text on the page, the text should look like this:
<sometext> ... but when I echo this, nothing appears!!
<sometext>
How ca I do this?
A "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>");
1.4m articles
1.4m replys
5 comments
57.0k users