void exit ( [mixed status] ) terminates execution of the script : exit « Utility Function « PHP






void exit ( [mixed status] ) terminates execution of the script

 
if ($password != "frosties") {
            print "Access denied.";
            exit( ); // note: ( ) is optional
    }
  
  








Related examples in the same category

1.void exit ( [mixed status] ) terminates execution of a script, and is an alias of the exit( ) function.