note 126184 added to function.get-defined-vars
| From: | nix dot code at 4assistance dot com dot nix | Date: | Tue, 22 Jun 2021 01:27:51 +0000 |
| Subject: | note 126184 added to function.get-defined-vars | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216536@lists.php.net to get a copy of this message | ||
Insert this at point of interest; add keys of unwanted 1st dim variables to 2nd param of
array_diff_key
<?php
echo '<pre>defined_except '; var_dump (array_diff_key (get_defined_vars(),
['GLOBALS'=>0,'_SERVER'=>0])); echo '
'.basename(__FILE__).':'.__LINE__.'</pre>'; #die;
?>
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 187.223.246.131)
----
Manual Page -- https://php.net/manual/en/function.get-defined-vars.php
Edit -- https://main.php.net/note/edit/126184
Del: integrated -- https://main.php.net/note/delete/126184/integrated
Del: useless -- https://main.php.net/note/delete/126184/useless
Del: bad code -- https://main.php.net/note/delete/126184/bad+code
Del: spam -- https://main.php.net/note/delete/126184/spam
Del: non-english -- https://main.php.net/note/delete/126184/non-english
Del: in docs -- https://main.php.net/note/delete/126184/in+docs
Del: other reasons-- https://main.php.net/note/delete/126184
Reject -- https://main.php.net/note/reject/126184
Search -- https://main.php.net/manage/user-notes.php