RE: [PHP] Retrieving array_keys from $_POST

From: Date: Thu, 22 May 2003 23:33:30 +0000
Subject: RE: [PHP] Retrieving array_keys from $_POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148655@lists.php.net to get a copy of this message
> yea, i have the manual. > just learning how to use the array_keys; That was the question..... Oh, in that case... array_keys() returns another array containing just the keys from the previous array as values. You can loop through this with foreach() and print them out or do whatever... Plenty of examples on the array_keys manual page. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > > > How would I retrieve a list of the array_keys from the $_POST array ? > > I > > > have a form that ive created with multiple fields. > > > > > > I would like to pull the names of the fields and echo them. > > > > Hmmm.. maybe you could use the array_keys() function? I'm just throwing > > out wild guesses here and I could be totally off base. Hell, I don't > > search the manual, either. :)

« previous php.general (#148655) next »