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

  1. <?php 
  2.  $siswa = array('1819117579' => 'Syarif',
  3.      '1819117580' => 'Udin',
  4.      '1819117581' => 'Jani');
  5.  
  6.   foreach ($siswa as $nis => $nama) {
  7.    echo $nama . ' memiliki NIS ' . $nis . '<br>';
  8.   }
  9.  ?>
File Description
  • hds
  • PHP Code
  • 29 Oct-2019
  • 212 Bytes
You can Share it: