Re: [PHP] Re: operators as callbacks?

2008-11-30 Thread Nathan Nobbe
On Sat, Nov 29, 2008 at 5:59 PM, Martin Zvarík [EMAIL PROTECTED] wrote: Joe napsal(a): 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 +

[PHP] Re: operators as callbacks?

2008-11-29 Thread Martin Zvarík
Joe napsal(a): 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

[PHP] Re: operators

2005-12-28 Thread M. Sokolewicz
please read http://www.php.net/manual/en/language.oop.php explaining what Objects are exactly (since it's looping over an object property which just so happens to be an array) http://www.php.net/manual/en/control-structures.foreach.php explains what = is (part of foreach()) - tul Henry

[PHP] Re: Operators

2002-01-10 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Gerard Samuel) wrote: If != is the opposite of == What is the opposite of === ?? !($something===$somethingelse) -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,