Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
07-10-2009, 02:00 PM #1
Something I've never understood ....
Is why you can't, for example, use some pass-by-value functions inside each other.
For example, you can't have:
Instead you must use:
$diff = array_diff($ar1, $ar2);
emptyare references so I don't see what the Zend engine has to complain about!
It's just something that has bugged me ever since I first came across it ...
I notice this happens in a number of other cases when the argument that is being complained about is not being passed by reference.
Last edited by mlse; 07-10-2009 at 02:07 PM.Die Welt ist ein Irrenhaus und hier ist die Zentrale!
07-10-2009, 05:50 PM #2
- Join Date
- Dec 2005
- Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
- Thanked 637 Times in 625 Posts
I think it's because empty() is a language construct, not a function. I don't really know why that limits it though...