ヒアドキュメント内で定数を使用
printやechoなどのヒアドキュメント内で
定数を使用したい場合
define('constant','定数'); echo "ヒアドキュメント内で{$cst(constant)}を使用"; function cst($hoge){ return $hoge; }
printやechoなどのヒアドキュメント内で
定数を使用したい場合
define('constant','定数'); echo "ヒアドキュメント内で{$cst(constant)}を使用"; function cst($hoge){ return $hoge; }
コメントを残す