I would like to do something like this:
function readUser($aUser = loadDefaultUser()){ //doing read User }
I find that it will display a erro
I would rather give a Null value for this argument and then call loadDefaultUser() in the body of the function. Something like this:
Null
loadDefaultUser()
function readUser($aUser = NULL){ if(is_null($aUser)){ $aUser = loadDefaultUser(); } //... }