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

前端 未结 6 1995
谎友^
谎友^ 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:39

    var_export creates the PHP code, which you can run through the eval.

    But I wonder, what is your idea?

提交回复
热议问题