Last active
October 9, 2018 07:42
-
-
Save pierrealexaline/d76c2ea1eb3a8c6bd792b009794509da to your computer and use it in GitHub Desktop.
exercice php variables
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 | |
// This is my way ! | |
$nameFilm = "Indiana Jones et la dernière croisade"; | |
$viewFilm = true; | |
$dateFilm = 1989; | |
$noteFilm = 8.3; | |
$o = "<p>\n"; | |
$o .= "Titre du film : " . $nameFilm . "\n"; | |
$o .= "Date de sortie : " . $dateFilm . "\n"; | |
$o .= "Note : " . $noteFilm . "<br />\n"; | |
$o .= "Avez-vous vu ce film ? " . $viewFilm . "\n"; | |
$o .= "</p>\n"; | |
echo $o; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment