Sample Code I: Say Hello

<?php echo "Hello World"; ?>

Outcome:

 

Sample Code II: The version of PHP on Ruby

<?
// Does our host have PHP, and if so, what version?
printf("Your host Ruby is running PHP version %s", phpversion());
?>

(Close this window)