Hello World'; ?>
';
// Outputs all the result of shellcommand "ls", and returns
// the last output line into $last_line. Stores the return value
// of the shell command in $retval.
$last_line = system('ls -ld /tmp', $retval);
// Printing additional info
echo '
Last line of the output: ' . $last_line . '
Return value: ' . $retval;
?>