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.
Result of php executing
Full code of hh.php
- <?php
- $array = array( 'film' => array( 'Iron-man', 'Banlieue 13', 'Titanic' ),
- 'genre' => array( 'Science-fiction', 'Science-fiction', 'drame romantique' ),
- 'pays' => array( 'USA', 'france', 'USA' ) );
- foreach( $array as $key => $value )
- {
- echo $key . ': <br />';
- foreach( $value as $valeur )
- echo ' ' . $valeur . '<br />';
- echo '<br />';
- }
- ?>