Php hello world

in #oop7 years ago (edited)

This is how you can write your very first program in php.
This program does one thing. It prints on the screem hello world.

<?php
echo "hello world";
?>

The only thing you need to run it is to have php running on your computer or webserver.