indiana jones magical sentences - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of indiana jones magical sentences.php
- <?php
- $animals = ["Le singe", "Le serpent", "Le tigre"];
- $elements = ["a l'eau", "au feu", " au vent"];
- function writeSecretSentence (string $animals, string $elements):array {
- $arr = [];
- forEach($animals as $animal) {
- forEach($elements as $element) {
- $arr[] = $animal . "s'incline face " . $element . ".";
- };
- };
- return $arr;
- };
- forEach(writeSecretSentence($animals, $elements) as $sentence) {echo $sentence;};
- ?>
File Description
- indiana jones magical sentences
- PHP Code
- 25 Sep-2022
- 516 Bytes
You can Share it:
Latest PHP Pastes