Name
die()
Synopsis
void exit ( [mixed status
] )
The die()
function terminates execution of a script, and is an alias of the exit()
function.
$db = open_database() OR die("Couldn't open database!");
Get PHP in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.