+ 3
Does PHP support value returning functions ?
4 Respostas
+ 7
Yes, PHP supports a return type which is a function. PHP is very flexible in fact of return types. It is also possible to return multiple values.
function sendData($user, $pass, $host){
return function() use ($user, $pass, $host){
return array($user, $pass, $host);
};
}
+ 1
thank you . @Manuel
0
Yes
0
Yes