Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

<? echo "Hello World";


Actually, you just need this:

Hello world

If all you want to do is print some text, just put some text outside the <?php delimiter. If you want to do nothing else, you don't even need the <?php delimiter.


True, but he/she mentioned specifically a "Hello World" in PHP.


    Hello World
is valid PHP




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: