Re: [PHP] foreach function

2001-04-13 Thread Dean Hall
""kenny.hibs"" <[EMAIL PROTECTED]> wrote: > My isp uses php3 and some of my scripts have the function 'foreach' > which is php4. > Is there are way to fix this Sure. If your code says: foreach($array as $element) { // this is a numerically-indexed array ... } do: while(list(,$element) = e

[PHP] foreach function

2001-04-13 Thread kenny.hibs
My isp uses php3 and some of my scripts have the function 'foreach' which is php4. Is there are way to fix this kenny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrato