exit; Keyword in PHP

Date Published: 03/02/2021Published By: JaiSchool

This keyword (exit) stops the code execution after it. Statements after exit will not run.

<?php

echo "Jaischool";
exit;
echo "This statement will not be executed.";


?>

Publish A Comment

Leave a Reply

Your email address will not be published. Required fields are marked *