What is the best practice for placing a return value in PHP function that doesn't need to return anything? Here I have two examples here.
No Return
function SayHello(){
echo 'Hello';
}
Return no value
function SayHello(){
echo 'Hello';
return;
}
Irrelevant...
function SayHello(){
echo 'Hello';
return; // or no return; - It really doesn't matter, there is no standard
}
If there really is no rule of thumb here, could you please let me know what PSR standards have to say about this (if anything)?
I'm just trying to form good habits. If this is opinion based, could you not flag this question as 'opinion based' - but simply answer 'opinion based'?