> -----Original Message-----
> From: Remy Dufour [mailto:[EMAIL PROTECTED]]
> Sent: 13 June 2002 14:34
> 
> If you do this, it should work
> 
> function foo()
> {
>     global $_POST;

That's unnecessary -- the $_ arrays are automatically global ("superglobal").

>     reset($_POST);

That's unnecessary -- foreach always traverses the whole of an array, regardless of 
the current position of its internal pointer.

>     foreach($_POST as $item => $value){
>         echo "$item, $value<br>";
>     }
> }

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

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

Reply via email to