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 181 views
181 views asked Jun 24, 2025 by avibootz
1 answer 176 views
1 answer 181 views
181 views asked Jun 23, 2025 by avibootz
1 answer 165 views
165 views asked Jun 23, 2025 by avibootz
1 answer 169 views
1 answer 171 views
...