LoginSignup
0
0

More than 5 years have passed since last update.

PHPの配列を出力するときに echo は使えない

Posted at
  • var_dump()
  • print_r()

のいずれかを使う。

なお、出力結果は次のようになる。

var_dump()

Screen Shot 2018-08-20 at 14.49.00.png

print_r()

Screen Shot 2018-08-20 at 14.49.23.png

型もついでに見たいなら var_dump() を使うとよさげ。

0
0
0

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