RE: [PHP] in_array - what the...

2010-06-25 Thread Bob McConnell
From: Peter Lind > On 25 June 2010 19:58, Bob McConnell wrote: >> From: Daevid Vincent >> >>> Why do this "in_array()" business?? >>> >>> Just do this... >>> >>> if (self::$aboveArray[$name]) >>> { >>>    //something interesting here >>> } >> >> Does that gibberish actually do something? It doesn

Re: [PHP] in_array - what the...

2010-06-25 Thread Peter Lind
On 25 June 2010 19:58, Bob McConnell wrote: > From: Daevid Vincent > >> Why do this "in_array()" business?? >> >> Just do this... >> >> if (self::$aboveArray[$name]) >> { >>    //something interesting here >> } > > Does that gibberish actually do something? It doesn't make any sense to > me, while

RE: [PHP] in_array - what the...

2010-06-25 Thread Bob McConnell
From: Daevid Vincent > Why do this "in_array()" business?? > > Just do this... > > if (self::$aboveArray[$name]) > { >//something interesting here > } Does that gibberish actually do something? It doesn't make any sense to me, while in_array() actually looks like what it does. Bob McConne

RE: [PHP] in_array - what the...

2010-06-25 Thread Daevid Vincent
> -Original Message- > From: Gary . [mailto:php-gene...@garydjones.name] > Sent: Friday, June 25, 2010 1:14 AM > To: PHP > Subject: Re: [PHP] in_array - what the... > > "Ford, Mike" writes: > >> -Original Message- > >>

RE: [PHP] in_array - what the...

2010-06-25 Thread Ford, Mike
> -Original Message- > From: Gary . [mailto:php-gene...@garydjones.name] > Sent: 25 June 2010 09:14 > To: PHP > Subject: Re: [PHP] in_array - what the... > > "Ford, Mike" writes: > >> -Original Message- > >>

Re: [PHP] in_array - what the...

2010-06-25 Thread Gary .
"Ford, Mike" writes: >> -Original Message- >> If I have an array that looks like >> array(1) { >> ["mac_address"]=> >> string(2) "td" >> } >> >> and I call >> if (in_array($name, self::$aboveArray)) >> with $name as >> string(11) "mac_address" >> >> what should be the result

RE: [PHP] in_array - what the...

2010-06-25 Thread Ford, Mike
> -Original Message- > From: Gary . [mailto:php-gene...@garydjones.name] > Sent: 25 June 2010 08:18 > To: PHP > Subject: [PHP] in_array - what the... > > If I have an array that looks like > array(1) { > ["mac_address"]=> > string(2) "td" > } > > and I call > if (in_array($n