Junaid Bhura a web developer in Melbourne, Australia - specializing in WordPress development.

“Hello World” Challenge – PHP


How many characters does your programming language need to output the phrase “Hello, World” on a web page? I’ll go first with PHP: 12!

Hello, World

That’s it!

A more verbose example would be something like:

<?php
echo 'Hello, World';

But the beauty of PHP is that you don’t need to call it until its needed, which makes it a great companion to work alongside HTML markup.

Leave a Reply

Your email address will not be published. Required fields are marked *