If I return nothing explicitly, what does a php function exactly return?
function foo() {}
What type is it?
What value is it?
How do I test for it exactly with === ?
Did this change from php4 to php5?
Is there a difference between function foo() {}
and function foo() { return; }
(I am not asking how to test it like if (foo() !=0) ...
)
null
null
if(foo() === null)
You can try it out by doing:
$x = foo();
var_dump($x);