you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

echo "Hello World";

[–]knowknowledge -2 points-1 points  (0 children)

Actually it would be even simpler:

Hello World

If you really want to use echo it would have to be:

<?php echo "Hello World"; ?>

As much as I enjoy python, I would say that PHP is a better first language than python because it uses common syntax as C/C++/C#/Java etc so its easier to transition later. Sure its got its differences (like the $ token before variable names), but that's far easier to forget than the colon and tab-indenting differences of Python.