Upgrading to PHP 5

 <  Day Day Up  >  

You can now pass optional parameters by reference. For example:

function updateAddress(&$address = 'NULL') { }

In PHP 4, you could declare a parameter as either optional or pass-by-reference , but not both. PHP 5 removes this limitation.

 <  Day Day Up  >  

Категории