Count How Many Of The Same Character In String Php
- Forums
- PHP
- Count How Many Of The Same Character In String Php
This Page Contains information about Count How Many Of The Same Character In String Php By garibl in category PHP with 4 Replies. [1189], Last Updated: Sat May 18, 2024
garibl
Mon Oct 13, 2008
4 Comments
4473 Visits
hi i have my wallpaper website running php and i am writing this script and i need to count how many of the same character in string php. for example, if i have a string like this:
$site = wallpaperama.com
as you can see, i want to know how many letter a are on my $site string. if i count them i see that it has four.
so how can i do this?