hh - 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.



Your result can be seen below.

Result of php executing





Full code of hh.php

  1. <?php
  2. $array = array( 'film' => array( 'Iron-man', 'Banlieue 13', 'Titanic' ),
  3.                 'genre' => array( 'Science-fiction', 'Science-fiction', 'drame romantique' ),
  4.                 'pays' => array( 'USA', 'france', 'USA' ) );
  5.  
  6. foreach( $array as $key => $value )
  7. {
  8.   echo $key . ': <br />';
  9.  
  10.   foreach( $value as $valeur )
  11.     echo '  ' . $valeur . '<br />';
  12.    
  13.   echo '<br />';
  14. }
  15. ?>
  16.  
  17.  
File Description
  • hh
  • PHP Code
  • 04 Aug-2022
  • 395 Bytes
You can Share it: