phpIntroduction - 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 phpIntroduction.php
- <?php
- $mybook = array('1st'=>'John', '2nd'=>'Ringo', '3rd'=>'George', '4th'=>'Paul');
- $frameworks = array('1st'=>'Wordpress', '2nd'=>'Joomla', '3rd'=>'Drupal');
- //print_r($mybook);
- // loop round array
- echo "<p>Choose your favourite CMS framrwork?</p>";
- echo "<ol>";
- foreach($frameworks as $val){
- echo "<li>$val</li>";
- }
- echo "</ol>";
- $top = $mybook['1st'];
- echo "<p>$top</p>";
- echo "<p>{$mybook['1st']}<p>";
File Description
- phpIntroduction
- PHP Code
- 25 Feb-2021
- 418 Bytes
You can Share it:
Latest PHP Pastes