Re: [PHP4BETA] getting a http_get_vars array value

From: Date: Mon, 29 Nov 1999 09:26:46 +0000
Subject: Re: [PHP4BETA] getting a http_get_vars array value
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-7055@lists.php.net to get a copy of this message
You can access it like; $var = $HTTP_GET_VARS['array'][0]; At least with beta3 else something has broke. curt -- * Harold (harold@salt.xgroup.de) [991129 03:07]: > im having difficulties with $HTTP_GET_VARS returning array values.. > > example url: > > test.php?array[]=1&array[]=2&array[]=3 > > what i have tried: > > echo 'array[0] = ' . $HTTP_GET_VARS[array[0]]; > echo 'array[0] = ' . $HTTP_GET_VARS[$array[0]]; > echo 'array[0] = ' . $HTTP_GET_VARS["array[0]"]; > echo 'array[0] = ' . $HTTP_GET_VARS["$array[0]"]; > echo 'array[0] = ' . $array[0]; > > the last one works, but i already have an array of that name.. is it > possible to get the value through a $HTTP_GET_VARS function? > > using yesterdays cvs of php4b4 on apache linux.. > > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net >

« previous php.version4 (#7055) next »