Answers for "exit and echo php"

PHP
2

php exit

exit;
Posted by: Guest on February-20-2020
2

exit and echo php

//exit — Output a message and terminate the current script
<?php

$filename = '/path/to/data-file';
$file = fopen($filename, 'r')
    or exit("unable to open file ($filename)");

?>
Posted by: Guest on December-01-2020

Browse Popular Code Answers by Language