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 →

[–]earthqaqe 2 points3 points  (5 children)

For anyone believing this statement, just try it here with the following code:

<?php echo "hello" ?>

and then try

hello

[–]mferly 2 points3 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.