PHP question. When does the PHP script execution be considered "ended"?

Jason

New member
Im trying to practice with PHP & MySQL using as few connections to the DB as possible and i was wondering when is PHP script execution considered "done". Lets say you have a .php file set up like this.

<?php
if(isset['testSubmitButton']) {
do some functions if a form was submitted
}
else {
// add some HTML. Is this considered END OF SCRIPT cus of the closing of this block?
?>
<display some HTML>
<?php
// close ELSE
}
// now is THIS the end of the script execution because its the End of File?
?>
 
Back
Top