Printing all defined variables and values

后端 未结 2 635
’; print_r(get_defined_vars()); echo ‘
’; ?>

This is just giving me the arrays for defined variables but not pr

相关标签:
2条回答
  • 2021-02-07 00:54

    Have you tried:

    var_dump(get_defined_vars());
    

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

    The php documentation should help.

    0 讨论(0)
  • 2021-02-07 01:08

    You can make your own debug output, by iterating through the array of returned to display gettype, value and name. However, the where it was defined, how much its been used, you cant do. PHP doesnt work that way

    0 讨论(0)
提交回复
热议问题