Stop execution of code in php
Example:-
echo "Hello World";
exit;
echo "Hello Readers";
Now just first line will be executed and Hello World will be displayed, the reason why Hello Readers will not be executed and displayed is the word exit, when compiler compile this word(exit) the execution of php script will be stopped. So whenever you want to stop the execution of php code just use exit; for this purpose.
Labels: php
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment