文字列を表示する

echo()、print()関数を使い、文字列を表示することができます。

<?php

print "hello\n";
echo "hello\n";

?>

【実行結果】
hello
hello

 

[対象]
PHP 5.x