[PHP] Re: Get the beginning array number

2001-09-18 Thread Steve Edberg
At 4:12 PM +0200 9/18/01, _lallous wrote: >reset($array); >list(, $value) = each($array); >this will give you first value in $value ...and according to http://www.php.net/manual/en/function.reset.php reset() returns the first element of the array, so you could shorten this to

[PHP] Re: Get the beginning array number

2001-09-18 Thread _lallous
reset($array); list(, $value) = each($array); this will give you first value in $value "Brandon Orther" <[EMAIL PROTECTED]> wrote in message !~[EMAIL PROTECTED]">news:!~[EMAIL PROTECTED]... > Hello, > > I have an array sent to my script that starts at different numbers each > time. Here is an ex