Arrays in PHP - 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 Arrays in PHP.php
- <?php
- $mybook = array('John', 'Ringo', 'Geroge', 'Paul');
- print_r($mybook);
- //loop round
- foreach($mybook as $val) {
- echo "<p>$val</p>";
- }
- echo "<p>Choose your favourite CMS framework?</p>";
- echo "<ol>";
- $frameworks = array("WordPress", "Joolma", "Drupla");
- foreach($frameworks as $val) {
- echo "<li>$val</li>";
- }
- echo "</ol>";
File Description
- Arrays in PHP
- PHP Code
- 25 Feb-2021
- 357 Bytes
You can Share it:
Latest PHP Pastes