|
Posted by frizzle on 01/09/06 14:31
Hi there.
I have this array:
name => john, age => 45, profession => teacher
name => hank, age => 22, profession => student
name => mary, age => 36, profession => dancer
etc.
etc.
It's going to be a big array.
Now what i wonder, how can i do the following;
while( $array['name'] == 22 )
{
do something.
}
I want to prevent the following:
while( $array )
{
if( 'name' == 22 ){
do something
}
}
Because this would create a big loop everytime.
Greetings Frizzle.
Navigation:
[Reply to this message]
|