Access variables outside of a PHP function
Author | Message |
---|---|
Locust | # Posted yesterday |
![]() |
Hello function onError($errno, $errstr, $errfile, $errline)except that the dump only show me the variables present in the function, whereas I want all the variables of the code if possible Do you know how to do it ? thank you ! |
Ads | |
Phoenix | # Posted yesterday |
![]() |
Your code is disgusting, and I say that as someone who has forked both your sisters. |
Valter | # Posted two hours ago |
![]() |
Either you somehow manage to ensure that the variables are passed as arguments in your function. |
Locust | # Posted two hours ago |
![]() |
Ok, I have my variables with GLOBALS thank you. |
Phoenix | # Posted one hour ago |
![]() |
unset($GLOBALS['GLOBALS']);Or some equivalent noobistry. |
Valter | # Posted one hour ago |
![]() |
if ($key != 'GLOBALS')rather. In or before the dump function preferably. @Phoenix: You who likes to bitch about disgusting code. |
Locust | # Posted 7 minutes ago |
![]() |
thank you ! |
Post a reply
Please be kind and courteous in your replies. Don't roast others for no reason.