fork download
  1. <?php
  2.  
  3. $string="0123456789";
  4. $len = strlen($string);
  5.  
  6. // pulando de 2 em 2 caracteres:
  7. for ($i = 0; $i < $len; $i += 2) echo $string[$i];
Success #stdin #stdout 0s 82560KB
stdin
Standard input is empty
stdout
02468