I recently updated from PHP 5.2 to PHP 5.3 in my server. I solved the majors changes between these versions but I have a doubt with the default parameters of functions. Example:
function myFunction ($var1, $var2='test') {
echo $var1;
echo $var2;
}
myFunction("Trying a ");
In PHP 5.2 and previous versions these lines output that:
Trying a test
But in PHP 5.3 only output that:
Trying a
With PHP 5.3 it's not possible to set a default value for a parameter not given?