PHP Tips [基本構文]

変数の表示 print

書式

print 変数;

変数の情報や文字列を出力・表示します。

使用例

<?php
    $hensu = 'こんにちは。';
    print $hensu;
?>

処理結果

こんいちは。