Output (echo/print) everything from a PHP Array

后端 未结 9 838
無奈伤痛
無奈伤痛 2020-12-06 16:21

Is it possible to echo or print the entire contents of an array without specifying which part of the array?

The scenario: I am trying to echo everything from:

<
9条回答
  •  有刺的猬
    2020-12-06 16:50

    I think you are looking for print_r which will print out the array as text. You can't control the formatting though, it's more for debugging. If you want cool formatting you'll need to do it manually.

提交回复
热议问题