fork download
  1. <?php
  2.  
  3. $palavra = "àñáçâçí"; // 7 letras
  4. $i = 0;
  5. while(!empty($palavra[$i])){
  6. $i++;
  7. }
  8. echo $i;
Success #stdin #stdout 0.03s 23280KB
stdin
Standard input is empty
stdout
14