How can I terminate a PHP script prematurely based on some condition? At the same time, I would like to send some message to the user informing him of the reason of this premature termination..
For example
if (x>10)
echo "value greater than 9 is invalid";
//END PHP SCRIPT ( HOW TO DO ??)
else
//continue executing the script.
Thanks,
Kunal
For example
if (x>10)
echo "value greater than 9 is invalid";
//END PHP SCRIPT ( HOW TO DO ??)
else
//continue executing the script.
Thanks,
Kunal