Is there a difference between:
function someMethod( $someArg ) {
// some code
return;
}
and
function someMethod( $someArg ) {
// some code
// no return
}
Both have NULL as ‘return value’. Is there a difference? Something PHP internally? Performance? Speed?
edit
I ask, because in Zend framework (in this video) they use return; which seemed (seems) silly to me. However, you would think that the people behind Zend framework do know their PHP…
php code
generated bytecode
so the explicit return statement generates one extra RETURN instruction. Otherwise there’s no difference.