On Sat, Nov 29, 2008 at 2:42 PM, Joe <[EMAIL PROTECTED]> wrote:
> Is it possible to use a PHP operator as a callback?
not that im aware of, even if you use the operator overloading extension, im
not sure youll find that ability.
I can use the BC library's math functions instead:
> array_map('b
Is it possible to use a PHP operator as a callback? Suppose I want to add two
arrays elementwise, I want to be able to do something like this:
array_map('+', $array1, $array2)
but this doesn't work as "+" is an operator and not a function.
I can use the BC library's math functions instead:
array
$xml->Result[$i] - a method call for object $xml
$key=>$value - array notation
Henry Krinkle wrote:
I have some experience with PHP, but not with these operators:
->
=>
Can someone explain how they are working in this snippet from Yahoo's search API
foreach($xml->Result[$i] as $
I have some experience with PHP, but not with these operators:
->
=>
Can someone explain how they are working in this snippet from Yahoo's search API
foreach($xml->Result[$i] as $key=>$value)
I don't see anything about them in the "Array Operators" documentation..
Thanks
> If != is the opposite of ==
> What is the opposite of === ??
I believe that is !==
Kirk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTE
If != is the opposite of ==
What is the opposite of === ??
Thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
6 matches
Mail list logo