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 +
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
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
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,
4 matches
Mail list logo