catch warning php code example Example: catch warning php <?php mysqli_connect_error() ?> <?php error_reporting(E_ALL); ?>