note 128418 added to language.variables.superglobals

From: Date: Sat, 22 Apr 2023 11:15:34 +0000
Subject: note 128418 added to language.variables.superglobals
Groups: php.notes 
Request: Send a blank email to php-notes+get-220372@lists.php.net to get a copy of this message
two bugs fixed in Mife's comment, but then it works: <?php // You do need global in this special situation function get_var($varname){ global $$varname; var_dump( $$varname); } get_var('_POST'); ?> ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.13.130 (proxied: 217.100.185.202) ---- Manual Page -- https://php.net/manual/en/language.variables.superglobals.php Edit -- https://main.php.net/note/edit/128418 Del: integrated -- https://main.php.net/note/delete/128418/integrated Del: useless -- https://main.php.net/note/delete/128418/useless Del: bad code -- https://main.php.net/note/delete/128418/bad+code Del: spam -- https://main.php.net/note/delete/128418/spam Del: non-english -- https://main.php.net/note/delete/128418/non-english Del: in docs -- https://main.php.net/note/delete/128418/in+docs Del: other reasons-- https://main.php.net/note/delete/128418 Reject -- https://main.php.net/note/reject/128418 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220372) next »