php勉強して数ヶ月…
<?php *** ?>
「php」って毎度書くのめんどくない?!
と気付いたので、ショートカットできる方法を探した。
当方、PHP Version 7.2.33。
php.ini
ファイル内のshort_open_tag
をOn
にすれば良い
とのことで早速実践!
1つ目の段落では、デフォルトで↓
; short_open_tag
; Default Value: On
; Development Value: Off
; Production Value: Off
だけど、phpをショートカットできていない(現状そうだった
では次の段落。
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag
short_open_tag=Off
↑この short_open_tag
が怪しいので早速 On
へ変更!
無事に、
<? ***** ?>
で書けましたー!!
意外とあっさり解決できたので、満足しているうちにQiitaに書き留めます