fork(2) download
  1. <?php
  2. $t = "Ala ma kota";
  3. $t_array = explode(" ",$t);
  4. $lengths = array_map('strlen', $t_array);
  5. for($i =0; $i< max($lengths)+2; $i=$i+1 )
  6. {
  7. echo '*';
  8. }
  9. echo '<br>';
  10. foreach($t_array as $tab)
  11. {
  12. echo '*';
  13. echo $tab;
  14. echo '*';
  15. echo '<br>';
  16. }
  17. for($i =0; $i< max($lengths)+2; $i=$i+1 )
  18. {
  19. echo '*';
  20. }
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
    ******<br>*Ala*<br>*ma*<br>*kota*<br>******