Skip to content

Instantly share code, notes, and snippets.

View MattCrl's full-sized avatar
:octocat:

Matt Crl MattCrl

:octocat:
  • Keensaas
  • Orléans, France
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Javascripting</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body>
<script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Javascripting</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body>
<div class="container">
/La/g
/[0-3][0-9]\/[0-1][0-9]\/[0-9]{4}/g
/ [0-9]\/[0-9]{2}/g
/(format)[a-z]{0,}/g
/\([a-zA-Z0-9]{0,}.{0,}\)/g
<?php
require 'personne.php';
$personne1 = new Personne('Gomez', 'Selena', '29 rue de la rue 29299 Ville', '22-07-1992');
$personne2 = new Personne('Swift', 'Taylor', '12 rue quelque part 45000 Orleans', '13.12.1989');
// Afficher les infos d'une personne grâce à la méthode __toString :
echo '<strong>Affichage des informations des personnes :</strong><br />';
echo $personne1;
echo $personne2;
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
--
-- Host: localhost Database: bddquest
-- ------------------------------------------------------
-- Server version 5.7.21-0ubuntu0.17.10.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
--
-- Host: localhost Database: matthieu_c_wcs_orleans
-- ------------------------------------------------------
-- Server version 5.7.21-0ubuntu0.17.10.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
Oui
<?php
function writeSecretSentence(string $animal, string $object): string
{
return $animal . ' s\'incline face à ' . $object . '. <br/>';
}
// Exemples :
echo writeSecretSentence('Le chat', 'la porte');
echo writeSecretSentence('Le lion', 'la lune');
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>PHP forms quest</title>
</head>
<body>
<?php
$movies = [
'Indiana Jones and the Kingdom of the Crystal' => ['Harrison Ford', 'Cate Blanchett', 'Patrick Timsit'],
'Indiana Jones and the Last Crusade' => ['Harrison Ford', 'Sean Connery', 'Taylor Swift'],
'Indiana Jones and the Temple of Doom' => ['Harrison Ford', 'Kate Capshaw', 'Amrish Puri']
];
foreach($movies as $movie => $actors) {