Home > PHP > exit()

exit()

It output a message and terminate the current script

Example

<?php
$fp = fopen($site,”r”) or exit(“Failed”);
?>

Output

phpcode

EmailFacebookLinkedInMySpaceDiggTumblrStumbleUponShare
Beginner's Guide....
Categories: PHP Tags: , , ,
Comments are closed.

Switch to our mobile site