PHP Classes

File: non_capturing_catch.php

Recommend this page to a friend!
  Classes of Allan Kibet  >  Learn New PHP 8 Features  >  non_capturing_catch.php  >  Download  
File: non_capturing_catch.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Learn New PHP 8 Features
Examples of how to use PHP 8 new features
Author: By
Last change:
Date: 8 months ago
Size: 132 bytes
 

Contents

Class file image Download
<?php

try {
    throw new
Exception();
} catch (
Exception) {
    die(
"I don't have to do anything with the Exception variable");
}

For more information send a message to info at phpclasses dot org.