Re: Get the beginning array number

From: Date: Tue, 18 Sep 2001 14:12:28 +0000
Subject: Re: Get the beginning array number
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-67705@lists.php.net to get a copy of this message
reset($array); list(, $value) = each($array); this will give you first value in $value "Brandon Orther" <orther@webintellects.com> wrote in message news:!~!AAAAAJNQRCPb+cROtVAu0KBU3RcEsC8A@webintellects.com... > Hello, > > I have an array sent to my script that starts at different numbers each > time. Here is an example > > > $array[5] through $array[23] will have values but [0]-[4] will not. > > Is there a way for me to find the first element of an array with a value? > > Thank you, > > -------------------------------------------- > Brandon Orther > WebIntellects Design/Development Manager > brandon@webintellects.com > 800-994-6364 > www.webintellects.com > -------------------------------------------- > >

« previous php.general (#67705) next »