fork download
  1. <?php
  2.  
  3. $teste = [1,2,3,4];
  4.  
  5. foreach ($teste as $t) {
  6. echo "<input type='text' value='$t'>".PHP_EOL;
  7. }
Success #stdin #stdout 0s 82560KB
stdin
Standard input is empty
stdout
<input type='text' value='1'>
<input type='text' value='2'>
<input type='text' value='3'>
<input type='text' value='4'>