Forum Moderators: coopster
Is it possible to pass a function to an argument variable of a custom function? i.e. something like this:
function getDateString($ts = time()) {
if (!isset($ts)) {
$ts = time();
}
return date('d.m.Y H:i:s', $ts);
}
Is it really only possible to pass a string or number as the default argument, instead of a function?