Функции die() и exit() в PHP
Использование exit() функции в PHP
<?php exit("Type a Message Here"); exit(); $s = 300; $v = 300.1; if($s===$v){ exit('The two are equal'); }else{ exit ('The two are not equal'); }
Использование die() функции в PHP
<?php $user = 'root'; $pass = ''; $db = 'sample tutorial'; $con = mysqli_connect("localhost", $user, $pass, $db); if ($con->connect_error) { die("Connection failed: " . $con->connect_error); } ?>