catch multiple exceptions php

PHP
<?php
try {
    /* ... */
} catch (FirstException $ex) {
    $this->manageException($ex);
} catch (SecondException $ex) {
    $this->manageException($ex);
}
?>
  
<------------------------- To --------------------->
  
<?php
try {

} catch (FirstException | SecondException $ex) {
    $this->manageException($ex);
}
?>try
{
    // Some code...
}
catch(AError | BError $e)
{
    // Handle exceptions
}
catch(Exception $e)
{
    // Handle the general case
}
Source

Also in PHP: