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
| https://imgur.com/a/NzGAdyq | |
| // var_dump result |
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 $naturalElement) :string | |
| { | |
| return "The $animal bends over the $naturalElement"; | |
| } | |
| echo writeSecretSentence('squirrel', 'moon'); |
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 | |
| /* numeric array compunded of strings, representing watchmen or | |
| villains from the comics */ | |
| $watchmen = ['Dr. Manhattan', 'Ozymandias', 'Silk Spectre', 'Roschach', 'The comedian', 'Nite Owl']; | |
| /* first function to define a message model using custom name in index.php function, | |
| or can be replaced by default value "Dr Manhanttan" */ | |
| function sayHello(string $name = "Dr Manhattan") :string | |
| { |
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)]; | |
| $indyWeapon = $weapons[rand(0,2)]; | |
| if($opponentWeapon == 'gun') | |
| { | |
| $indyWeapon == 'whip'; |
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 | |
| for($i = 0; $i<10; $i++) { | |
| echo $i; | |
| } | |
| echo PHP_EOL ."</br>"; | |
| for($i = 0; $i<11; $i++) { | |
| echo $i; | |
| } |
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 | |
| $moviesList = [ | |
| 'Indiana Jones & the lost Ark' => ['Harrison Ford', 'Kate Capshaw', 'Jonathan Ke Quan'], | |
| 'Indiana Jones & the last crusade' => ['Harrison Ford', 'Sean Connery', 'Denholm Elliott'], | |
| 'Indiana Jones & the kindgom of the crystal skull' => ['Harrison Ford', 'Shia LaBeouf', 'Karen Allen'], | |
| ]; | |
| foreach($moviesList as $key => $value){ | |
| echo "Dans le film " . $key . " les acteurs sont : "; |
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 | |
| $moviesList['Raiders Of the Lost Ark'] = 1981; | |
| $moviesList['Indiana Jones and the Temple of Doom'] = 1984; | |
| $moviesList['Indiana Jones and the Last Crusade'] = 1989; | |
| asort($moviesList); | |
| foreach($moviesList as $title => $date) { | |
| echo " " . $date . " - " . $title; |
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
| History file deleted. | |
| commit 8c3ff44484823c6a1e91211a45b4a77a2f097f07 (HEAD -> master) | |
| Author: clarade <c*********@yahoo.fr> | |
| Date: Thu Mar 4 22:06:16 2021 +0100 | |
| At Wild Code School, we code without shoes. | |
| diff --git a/wild.html b/wild.html | |
| new file mode 100644 | |
| index 0000000..e69de29 |
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
| │ ~/w/planets find . ✔ │ 12:32:50 | |
| . | |
| ./fictionnal | |
| ./fictionnal/arrakis.jpeg | |
| ./fictionnal/cybertron.jpeg | |
| ./fictionnal/coruscant.jpeg | |
| ./real | |
| ./real/ice_giants | |
| ./real/ice_giants/uranus.jpeg | |
| ./real/ice_giants/neptune.jpeg |
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
| │ / pwd ✔ │ 15:54:41 | |
| / | |
| │ / ls ✔ │ 15:54:43 | |
| Applications bin net | |
| Library cores private | |
| Network dev sbin | |
| System etc tmp | |
| Users home usr | |
| Volumes installer.failurerequests var | |
| │ / cd Users/claradesp/work ✔ │ 15:54:48 |