I'm quite used to PHP5 but have to write a PHP4 sync script, now I'm doing some digging to find the differences between PHP5 and 4. Problem is that I get alot of contradiction, some sites tell me that PHP4 has no byref whatever and others tell me this problem only occurs when using foreach..
To clarify an example:
function doSomething()
{
$aMyAr = array();
$oUser = new User();
addUser($aMyAr, $oUser);
}
function addUser($aDestArray, $oUser)
{
$aMyAr[] = $oUser;
}
I know you will be thinking why don't you just run this script yourself and echo/print_r the output? Well for some reasons PHP4 won't run in the latest WAMP/XAMPP (yes I tried a shitload of apache versions that were said to be compatible...)