Consectatio Excellentiae

The most basic command when starting out with php is outputting text to the browser using server-side scripting (i.e. PHP). The commands below are the two methods to achieve this:

<?php
echo "hello world";
?>

Alternatively

<?php
print "hello world";
?>

There are many other variations of these language constructs whether it be the syntax or their use within a php function. Regardless of this the two that have been demonstrated are in their simplest format.

Leave a Reply