exit()-exit() function used to immediatly terminating the script execution.
Example
if($var!=$var1){
echo "Access denied";
exit();
}
die()-die() function used to immediatly terminating the script execution.this is alias of exit().
Example
if($var!=$var1){
echo "Access denied";
die();
}
Copyright ©2022 coderraj.com. All Rights Reserved.