Output (echo/print) everything from a PHP Array

后端 未结 9 851
無奈伤痛
無奈伤痛 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 17:08

    var_dump() can do this.

    This function displays structured information about one or more expressions that includes its type and value. Arrays and objects are explored recursively with values indented to show structure.

    http://php.net/manual/en/function.var-dump.php

提交回复
热议问题