Put reset($_POST) before foreach loop

> I'm trying to loop through $_POST vars in a function, which I understand
to
> be an autoglobal associative array.  Here's the code I'm using:
>
> foreach($_POST as $item => $value){
> echo "$item, $value<br>";
> }
>
> However, I only get the first element of the array echoed, even though I
> know there to be other elements (I can access them as $_POST[element])




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to