php quit
snippet in php

php quit

user6448

exit();		// Normal exit

exit(1);	// Exit with an error code

exit('Error!');	// Exit and print an error message

php stop execution

user6434

<?php 
//declaring variables 
$a=5; 
$b=5.0; 
  
if($a==$b) 
 { 
    //terminating script with a message using exit() 
    exit('variables are equal'); 
 } 
else
 { 
   //terminating script with a message using exit() 
    exit('variables are not equal');  
 } 
?>