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
| <!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> |
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
| <!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"> |
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
| /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 |
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 | |
| 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; |
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
| -- 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 */; |
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
| -- 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 */; |
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
| Oui |
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 | |
| 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'); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>PHP forms quest</title> | |
| </head> | |
| <body> |
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 | |
| $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) { |