Re: $_post and array question

From: Date: Mon, 17 May 2004 22:54:22 +0000
Subject: Re: $_post and array question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-186443@lists.php.net to get a copy of this message
* Thus wrote Amon (argenstijn@hotmail.com): > > functionX($_POST["test_arr"]) > $arr_test = $_POST["test_arr"]; > > Knowing that $_POST["test_arr"]) does not exist.. this code will not result > in a error. > > Is this a bug,error,etc? Should this not also produce a novice error? Taks a look at the definition of functionX I bet it looks something like: function functionX(&$var) { } The same non-notice effect can be done like: $var = &$_POST['test_arr']; This is more of a side effect of assigning by reference. > Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#186443) next »