fork download
  1. <?php
  2. $s=array('Hyd','Kol','Agra','Guj','Surat', 'Mumbai');
  3. for($i=0;$i<6;$i++) { echo "<br>";
  4. for($j=1;$j<6;$j++) { echo $s[$i][$j]." "; } }
  5. ?>
  6.  
  7. // your code goes here
Success #stdin #stdout #stderr 0.02s 25816KB
stdin
Standard input is empty
stdout
<br>y d    <br>o l    <br>g r a   <br>u j    <br>u r a t  <br>u m b a i 
// your code goes here
stderr
PHP Notice:  Uninitialized string offset: 3 in /home/g3cAO8/prog.php on line 4
PHP Notice:  Uninitialized string offset: 4 in /home/g3cAO8/prog.php on line 4
PHP Notice:  Uninitialized string offset: 5 in /home/g3cAO8/prog.php on line 4
PHP Notice:  Uninitialized string offset: 3 in /home/g3cAO8/prog.php on line 4
PHP Notice:  Uninitialized string offset: 4 in /home/g3cAO8/prog.php on line 4
PHP Notice:  Uninitialized string offset: 5 in /home/g3cAO8/prog.php on line 4
PHP Notice:  Uninitialized string offset: 4 in /home/g3cAO8/prog.php on line 4
PHP Notice:  Uninitialized string offset: 5 in /home/g3cAO8/prog.php on line 4
PHP Notice:  Uninitialized string offset: 3 in /home/g3cAO8/prog.php on line 4
PHP Notice:  Uninitialized string offset: 4 in /home/g3cAO8/prog.php on line 4
PHP Notice:  Uninitialized string offset: 5 in /home/g3cAO8/prog.php on line 4
PHP Notice:  Uninitialized string offset: 5 in /home/g3cAO8/prog.php on line 4