How to create an array from output of var_dump in PHP?

前端 未结 6 1988
谎友^
谎友^ 2021-01-13 06:53

How can I parse the output of var_dump in PHP to create an array?

6条回答
  •  既然无缘
    2021-01-13 07:44

    Maybe you’re looking for var_export that will give you a valid PHP expression of the passed value.

提交回复
热议问题