Skip to content

Instantly share code, notes, and snippets.

@BastienSaulnier
Created September 28, 2019 13:25
Show Gist options
  • Save BastienSaulnier/8856281c2dc7a9b90e4d9e88a9d5fb02 to your computer and use it in GitHub Desktop.
Save BastienSaulnier/8856281c2dc7a9b90e4d9e88a9d5fb02 to your computer and use it in GitHub Desktop.
PHP Quete - 2 - Les variables
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>PHP quete 1</title>
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,700" rel="stylesheet">
<meta content="IE=edge" http-equiv=X-UA-Compatible>
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta name="description" content="description de la page" />
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
<!--[if IE 7]>
<link href="css/stylesie7.css" rel="stylesheet" type="text/css" media="screen">
<![endif]-->
</head>
<body>
<main>
<?php
$movie = "Indiana Jones and the Last Crusade";
$date = 1989;
$note = 8.2;
function isTrueOrFalse() {
$seen = false;
if ($seen==true){
echo 'true';
}else{
echo 'false';
}
}
?>
<p><?php echo $movie ?></p>
<p><?php echo $date ?></p>
<p><?php isTrueOrFalse() ?></p>
<p><?php echo $note ?></p>
</main>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment