Re: nested array...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



$nestedarray[$i['id'] == 5

and $i is your array index

On 17/12/2007, opo jal <penjahat.jahat@xxxxxxxxx> wrote:
>
> hi, i have a nested array
> ex:
> print_r($nestedarray):
> Array(
> [0]=>Array([id]=>1 [name]=>name1 [etc]=>etc1)
> [1]=>Array([id]=>2 [name]=>name2 [etc]=>etc2)
> [3]=>Array([id]=>3 [name]=>name3 [etc]=>etc3)
> )
>
> if I want to check whether id=5 is in that $nestedarray, how to do
> that?!?!
>
> i'd really appreciate the help..
>
> thanks in advance..
>



-- 
Best Regards

Cesar D. Rodas
http://www.cesarodas.com
http://www.thyphp.com
http://www.phpajax.org
Phone: +595-961-974165

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux