Last active
March 31, 2020 13:11
-
-
Save pierrealexaline/c12610f301b281b682f789d4534be02c to your computer and use it in GitHub Desktop.
WCS - Les variables en PHP
This file contains hidden or 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 | |
| // Variables | |
| $nameFilm = "Indiana Jones and the Last Crusade"; // String | |
| $viewFilm = true; // Boolean | |
| $dateFilm = 1989; // Integer | |
| $noteFilm = 8.3; // Float | |
| // Output | |
| $output = "<p>\n"; | |
| $output .= "Titre du film : " . $nameFilm . "\n"; | |
| $output .= "Date de sortie : " . $dateFilm . "\n"; | |
| $output .= "Note : " . $noteFilm . "<br />\n"; | |
| $output .= "Avez-vous vu ce film ? " . $viewFilm . "\n"; | |
| $output .= "</p>\n"; | |
| // Show output | |
| echo $output; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment