Hi all,
like in ASP we use
response.End()
to stop code execution in between..
is there any function in php to stop code execution in between?
Printable View
Hi all,
like in ASP we use
response.End()
to stop code execution in between..
is there any function in php to stop code execution in between?
You can use exit() or die() to terminate the script if you must, but it's preferable to structure your code so that you don't have to.
Thanks penagate!!
sometimes what happnes we require to check whether data is
coming properly or not..so to just echo variables and stop further execution we require exit() or die()
i.e. to check mysql query whether given where claus contains data or not.
Oh, of course, if it's for debugging then that's fine.