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 367 views
1 answer 183 views
183 views asked Jun 24, 2025 by avibootz
1 answer 179 views
1 answer 181 views
181 views asked Jun 23, 2025 by avibootz
1 answer 167 views
167 views asked Jun 23, 2025 by avibootz
1 answer 170 views
1 answer 172 views
...