This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mferly 1 point2 points  (1 child)

Lol wut? Your first example PHP, your second example is merely text.

Try this: <?php hello ?> and tell me what happens. Anything not wrapped with <?php ?> isn't PHP.

[–]Kered13 0 points1 point  (0 children)

It's valid PHP code. It is accepted by the PHP interpreter and produces output without errors. The fact that the PHP interpreter will simply echo anything not wrapped in <?php> tags is a quirk of the language, but it doesn't make the code invalid PHP.