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> | |
<title>Find The Precious</title> | |
<meta ref="utc-8"> | |
</head> | |
<header> | |
<nav> | |
<a href="findtheprecious.com">findtheprecious.com</a> | |
<ul> |
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>Gandalf</title> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<div id="container"> | |
<img src="http://images.innoveduc.fr/integration_gandalf.png" alt="gandalf"> |
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 | |
$name = 'Indiana jones et la dernière croisade'; | |
$year = 1989; | |
$time = 2.7; | |
$view = TRUE; | |
if ($view == TRUE) | |
{ | |
echo $name.$year.$time; | |
} | |
else |
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
yacine@yacine-ThinkPad-T430:~$ ls | |
Bureau examples.desktop Modèles Public Téléchargements Vidéos | |
Documents Images Musique snap Travail | |
yacine@yacine-ThinkPad-T430:~$ cd Travail/ | |
yacine@yacine-ThinkPad-T430:~/Travail$ ls | |
Alibabio CSC findtheprecious PHP Test1 | |
yacine@yacine-ThinkPad-T430:~/Travail$ cd PHP/ | |
yacine@yacine-ThinkPad-T430:~/Travail/PHP$ ls | |
indinia.php | |
yacine@yacine-ThinkPad-T430:~/Travail/PHP$ pwd |
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 | |
$first_message = "0@sn9sirppa@#?ia'jgtvryko1"; | |
$divide1 = strlen($first_message); | |
$key_divide1 = 5; | |
$key_divide2 = $divide1 / 2; | |
$first_modif = substr($first_message, $key_divide1, $key_divide2); | |
echo $first_modif; | |
$second_modif = str_replace('@#?', ' ', $first_modif); | |
echo $second_modif; |
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 | |
$films = [ | |
'Indiana Jones et le Royaume du Crâne de Cristal' => ['Harrison Ford', 'Cate Blanchett', 'Karen Allen'], | |
'Indiana Jones et la Dernière Croisade' => ['Harrison Ford', 'Sean Connery', 'Denholm Elliot'], | |
'Indiana Jones et le Temple maudit' => ['Harrison Ford', 'Kate Capshaw', 'Jonathan Ke Quan' ] | |
]; | |
foreach($films as $k => $values) | |
{ | |
$str = 'Dans le film '.$k.' les principaux acteurs sont : '; | |
foreach($values as $values) |
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 | |
$weapons = ['fists', 'whip', 'gun']; | |
$opponentWeapon = $weapons[rand(0,2)]; | |
if ($opponentWeapon == 'fists'){ | |
$indyWeapon = 'gun'; | |
} | |
elseif ($opponentWeapon == 'gun'){ |
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 "perso.php"; | |
$heroe = new Personne("azir", "boobl", "2009-05-11"); | |
$heroe->adresse("3 place des fleurs"); | |
$heroe->afficher(); | |
?> |
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
const movieName = "Las Vegas 21"; | |
const realName = "Robert Luketic"; | |
const year = "2008"; | |
const message = "l'un de mes films favoris est " + movieName + ' réalisé par ' + realName + ' en ' + year; | |
alert(message); |
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
Quête Symfony | |
Quelle société développe Symfony ? | |
La société qui développe Symfony est SensioLabs. | |
Cite les autres produits développés par SensioLabs ? | |
Blackfire.io | |
Twig |
OlderNewer