Re: [PHP] operators as callbacks?

2008-11-29 Thread Nathan Nobbe
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

[PHP] operators as callbacks?

2008-11-29 Thread Joe
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

Re: [PHP] operators

2005-12-28 Thread Ligaya Turmelle
$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 $

[PHP] operators

2005-12-28 Thread Henry Krinkle
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

RE: [PHP] Operators

2002-01-10 Thread Johnson, Kirk
> 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

[PHP] Operators

2002-01-10 Thread Gerard Samuel
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]