文字列を出力する

サンプルソース

<?php
// "文字列を出力する"と表示
print "文字列を出力する";

echo "文字列を出力する";

echo "文字列", "を", "出力する";
?>

解説

printechoで文字列を出力します。
echoは、カンマで区切ると、複数の文字列を出力できます。


関連する内容



スポンサードリンク



 

Copyright (C) PHP@Workshop All rights reserved.