返回
return 語句將程式控制返回給呼叫函式。
當從函式內呼叫 return 時,當前函式的執行將結束。
function returnEndsFunctions()
{
   echo 'This is executed';
   return;
   echo 'This is not executed.';
}
當你執行 returnEndsFunctions(); 時你會得到輸出 This is executed;
當從帶有和引數的函式中呼叫 return 時,當前函式的執行將結束,並且引數的值將返回給呼叫函式。