[php] PHP seems to parse HTML

This is starting to get really annoying.
If I try something like:

echo '<img src="test.jpg" alt="test" />';

The /> is replaced with >. If I try:

echo '<img src="test.jpg" alt="test"></img>';

is completely removed. This one makes even less sense to me:

echo '<img src="test.jpg" alt="test" afhfa>';

Will output: <img src=“test.jpg” alt=“test” afhfa="">.

What’s going on?

It’s even worse here. On that, I have a function which deletes the messages, and you’ll see that there’s a time at the end of the messages which is encased within <span class=“tiny”>. I had to do alot of piddling around to get PHP to parse that correctly, but, when I echo the result out, even though the message currently in the box and the result look exactly the same, PHP refuses to accept the fact that they’re EXACTLY THE SAME!
A ‘if ($cAll == $all)’ test fails every time.

… Thanks.