fork download
  1. <?php
  2.  
  3. $text = "Eu sou um Menino e gosto de brincar com outros MENINOS";
  4. $count= substr_count(strtoupper($text), strtoupper("menino"));
  5. echo $count;
Success #stdin #stdout 0.02s 24400KB
stdin
Standard input is empty
stdout
2