

Seu próximo nível começa aqui
Seu desenvolvimento não pode ter limites. Garanta sua Assinatura Ilimitada e libere uma preparação completa com os melhores professores do Brasil.
Considerando a execução do trecho de código abaixo:
<?php
class CustomExceptionl extends Exception { }
class CustomException2 extends Exception { }
try {
---throw new CustomException2("mensagem");
} catch (CustomExceptionl $exception) {
---echo ' custoial- ';
} catch (Exception $exception) {
---echo 'exception-';
} catch (CustomException2 $exception) {
---echo 'custom2-';
} finally {
---echo 'finally';
}
O valor retornado será
exception-finally
customl-exception-finally
custom2-exception-finally
customl-exception-custom2-
exception-custom2-