Created
February 4, 2018 21:52
-
-
Save mars13code/87d9c50d08837d71a1bd8d2464296356 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// configuration de l'affichage d'erreurs | |
// http://php.net/manual/fr/function.error-reporting.php | |
// http://php.net/manual/fr/function.ini-set.php | |
// en mode dev | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); | |
// en mode prod | |
// error_reporting(0); | |
// ini_set('display_errors', '0'); | |
// $title = "mon titre"; | |
// ?? est l'opérateur Null coalescent | |
// http://php.net/manual/fr/migration70.new-features.php | |
// pour afficher la valeur d'une variable | |
// http://php.net/manual/fr/function.echo.php | |
?> | |
<h1><?php echo $title ?? "titre à préciser" ?></h1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment