How to exit program normally in PHP

3 Answers

0 votes
echo "PHP";
exit;

echo "will not execute";


/*
run: 

PHP 

*/

 



answered Jun 15, 2016 by avibootz
0 votes
echo "PHP";
exit();

echo "will not show";


/*
run: 

PHP 

*/

 



answered Jun 15, 2016 by avibootz
0 votes
echo "PHP";
exit(0);

echo "you will not see this line";


/*
run: 

PHP 

*/

 



answered Jun 15, 2016 by avibootz

Related questions

2 answers 250 views
1 answer 78 views
78 views asked Jun 24, 2025 by avibootz
1 answer 85 views
1 answer 83 views
83 views asked Jun 23, 2025 by avibootz
1 answer 80 views
80 views asked Jun 23, 2025 by avibootz
1 answer 84 views
1 answer 75 views
...