php - Is anything excecuted after using "return" in a function -
I appreciate that this is a very basic question, but I want to confirm something.
I have started working on a web application that has already been worked on.
My understanding of return is that it immediately terminates the immersion of the function. Please correct me if I am wrong.
But by this understanding,
$ myVariable return; Sqlsrv_close ($ connection); Can not turn off SQL Connection?
Then I understand that this is PHP 101, but I just want to check it twice.
If the call is made from within the function, back statement Ends the execution of an instant function, and the function gives its logic as the value of the call.
So in this case, this code will not execute, sqlsrv_close ($ connection); Ref:
Comments
Post a Comment