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 366 views
1 answer 180 views
180 views asked Jun 24, 2025 by avibootz
1 answer 175 views
1 answer 181 views
181 views asked Jun 23, 2025 by avibootz
1 answer 164 views
164 views asked Jun 23, 2025 by avibootz
1 answer 168 views
1 answer 170 views
...