leuthrick Gebruiker Lid geworden 17 sep 2008 Berichten 454 30 jul 2009 #1 hallo, is het mogelijk om te tellen hoevaak de letter a in de tekst zit? via google vind ik wel om alle tekens te tellen via strlen() alvast bedankt
hallo, is het mogelijk om te tellen hoevaak de letter a in de tekst zit? via google vind ik wel om alle tekens te tellen via strlen() alvast bedankt
nire Gebruiker Lid geworden 24 okt 2008 Berichten 318 30 jul 2009 #2 substr_count dus bijvoorbeeld: PHP: <?php echo substr_count("hallo bakker", "a"); // resultaat = 2 ?> Laatst bewerkt: 30 jul 2009
substr_count dus bijvoorbeeld: PHP: <?php echo substr_count("hallo bakker", "a"); // resultaat = 2 ?>