This file contains 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
/A\./g | |
/[0-9/]{1,}/ | |
/ \d\/\d./ | |
/[a-zA-Z]{14}/ | |
/(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])/gi |
This file contains 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 | |
abstract class HighWay | |
{ | |
/** | |
* @var array | |
*/ | |
protected $currentVehicules; |
This file contains 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="fr"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>JS</title> | |
</head> | |
<body> | |
<script type="text/javascript" src="script.js"></script> | |
</body> | |
</html> |
This file contains 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
1er requête : | |
mysql> SELECT name, COUNT(*) as nb_player FROM team | |
-> JOIN player ON team_id=team.id | |
-> GROUP BY name; | |
+------------+-----------+ | |
| name | nb_player | | |
+------------+-----------+ | |
| Gryffindor | 36 | | |
| Ravenclaw | 15 | |
This file contains 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
1ere requete : Retourne les noms, prénoms, rôle et équipe de tous les joueurs, | |
classés dans l’ordre alphabétique par équipe, puis par rôle dans l’équipe, puis par nom de famille, puis par prénom. | |
mysql> select lastname, firstname, role, name FROM player | |
-> JOIN wizard ON wizard.id=player.wizard_id | |
-> JOIN team ON team.id=player.team_id | |
-> ORDER BY name, role, lastname, firstname; | |
+-----------------+-------------+--------+------------+ | |
| lastname | firstname | role | name | | |
+-----------------+-------------+--------+------------+ |
This file contains 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 | |
class Truck extends Vehicle | |
{ | |
/** | |
* @var integer | |
*/ | |
protected $capacity; |
This file contains 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 | |
?> | |
<!doctype html> | |
<html lang="fr"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" | |
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> |
This file contains 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_once 'connect.php'; | |
$pdo = new \PDO (DSN, USER, PASS); | |
//Recuperer les élements du tableaux bribe | |
$query = "SELECT * FROM bribe"; | |
$statement = $pdo->query($query); | |
$bribes = $statement->fetchAll(PDO::FETCH_ASSOC); | |
This file contains 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 | |
// Bicycle.php | |
class Bicycle | |
{ | |
/** | |
* @var string | |
*/ | |
private $color; |
This file contains 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_once 'connec.php'; | |
$pdo = new \PDO (DSN, USER, PASS); | |
$query = "SELECT * FROM friend"; | |
$statement = $pdo->query($query); | |
$friends = $statement->fetchAll(); | |
foreach ($friends as $friend) { |
NewerOlder