LoginSignup
0
0

More than 5 years have passed since last update.

phpメモ

Last updated at Posted at 2015-12-07

phpメモ

三項演算子

echo使うとシンタックスエラーになる
【Parse error: syntax error, unexpected T_ECHO】

原因)
 戻り値がないから。三項演算子では式しか書けない。

対応)
 printを使う

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0