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
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
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
> -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-
> >>
> -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-
> >>
"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
> -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
7 matches
Mail list logo