j'ai lu dans un tuto: http://www.apprendre-php.com/tutoriels/ ... artie.html
Il y a une partie qui est codé comme ça.
<?php
try {
$password = 'Toto';
if('Emacs' !== $password) {
throw new Exception('Votre password est incorrect !');
}
echo 'Bonjour Emacs';
}
catch(Exception $e)
{
echo 'L\'erreur suivante a été générée : '."\n";
echo $e->getMessage();
}
?>
Pourquoi entoure-t-on le "echo 'Bonjour Emacs';" ?