jbpourvirginie - 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 jbpourvirginie.php

  1. <?php
  2.  
  3. $goals = [
  4.     ['timecode' => 2, 'team' => 'blue'],
  5.     ['timecode' => 4, 'team' => 'orange'],
  6.     ['timecode' => 6, 'team' => 'blue'],
  7.     ['timecode' => 10, 'team' => 'blue']
  8. ];
  9.  
  10. // ... todo
  11. $s = '';
  12. foreach($goals as $goal) {
  13.     $s .= 'something'; 
  14. }
  15.  
  16. var_dump($s);
File Description
  • jbpourvirginie
  • PHP Code
  • 15 Jan-2020
  • 276 Bytes
You can Share it: