Skip to main
WritePHPOnline
- Start write and run your php code online
Editor
PHP Tutorial
Crontab Generator
<?php
$fruits = array("Apple", "Orange", "Banana"); // print by using index echo $fruits[0] .'
'; // loop through each element foreach($fruits as $fruit) { echo $fruit .'
'; } // trying to echo whole array echo "
Trying to echo whole array
"; echo $fruits;
$fruits = array("Apple", "Orange", "Banana"); // print by using index echo $fruits[0] .'
'; // loop through each element foreach($fruits as $fruit) { echo $fruit .'
'; } // trying to echo whole array echo "
Trying to echo whole array
"; echo $fruits;
Hello World!