fork download
  1. <?php
  2. $str = "valor1,valor2,valor3";
  3. $corta = explode(",", $str);
  4. for($i=0 ; $i < count($corta); $i++)
  5. {
  6. echo $corta[$i]."\n";
  7. }
  8. ?>
Success #stdin #stdout 0.02s 24404KB
stdin
Standard input is empty
stdout
valor1
valor2
valor3