php-general | 2001092
Date: 09/18/01
- Next message: Lewis Bergman: "Re: [PHP] SMS with php"
- Previous message: gasman6103 <email protected>: "[PHP] fwd: INCREASING GAS PRICES"
- In reply to: Brandon Orther: "[PHP] Get the beginning array number"
- Next in thread: Steve Edberg: "[PHP] Re: Get the beginning array number"
- Reply: Steve Edberg: "[PHP] Re: Get the beginning array number"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
reset($array);
list(, $value) = each($array);
this will give you first value in $value
"Brandon Orther" <orther <email protected>> wrote in message
news:!~!AAAAAJNQRCPb+cROtVAu0KBU3RcEsC8A <email protected>
> 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 <email protected>
> 800-994-6364
> www.webintellects.com
> --------------------------------------------
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Lewis Bergman: "Re: [PHP] SMS with php"
- Previous message: gasman6103 <email protected>: "[PHP] fwd: INCREASING GAS PRICES"
- In reply to: Brandon Orther: "[PHP] Get the beginning array number"
- Next in thread: Steve Edberg: "[PHP] Re: Get the beginning array number"
- Reply: Steve Edberg: "[PHP] Re: Get the beginning array number"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

