InterviewSolution
| 1. |
How To Return A Value Back To The Function Caller? |
|
Answer» You can return a VALUE to the function caller by USING the "return $value" statement. Execution control will be TRANSFERRED to the caller immediately after the return statement. If there are other statements in the function after the return statement, they will not be executed. Here is a PHP script example on how to return values: You can return a value to the function caller by using the "return $value" statement. Execution control will be transferred to the caller immediately after the return statement. If there are other statements in the function after the return statement, they will not be executed. Here is a PHP script example on how to return values: |
|