Skip to content

Instantly share code, notes, and snippets.

@pierrealexaline
Last active March 31, 2020 13:11
Show Gist options
  • Select an option

  • Save pierrealexaline/c12610f301b281b682f789d4534be02c to your computer and use it in GitHub Desktop.

Select an option

Save pierrealexaline/c12610f301b281b682f789d4534be02c to your computer and use it in GitHub Desktop.
WCS - Les variables en PHP
<?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