You can use a regular expression to count non-overlapping substrings, which
can be single characters too:
<
http://php.net/preg_match_all>
Please read at least the PHP manual and PHP FAQs before you post here.
You appear to have difficulties expressing yourself in English; know then
that this is an *international* newsgroup, and you can also use your native
language here. The PHP manual is available is several languages, too.
It is also likely that there is a PHP newsgroup in your native language or
for your home region, which you should prefer then; my newsserver also
carries the following newsgroups:
<news:cn.comp.lang.php> (Mandarin – 中文)
<news:cz.comp.lang.php> (Czech – Čeština)
<news:de.comp.lang.php> (German – Deutsch)
<news:dk.edb.internet.webdesign.serverside.php> (Danish – Dansk)
<news:es.comp.lenguajes.php> (Spanish – Español)
<news:fr.comp.lang.php> (French – français)
<news:it.comp.www.php> (Italian – Italiano)
<news:no.it.programmering.php> (Norwegian – Norsk)
<news:pl.comp.lang.php> (Polish – Polski)
<news:tw.bbs.comp.lang.php> (Mandarin, Taiwan-specific)
I am a regular both in <news:de.comp.lang.php> and here.
Please post here using your real name (at least first name *and* last name);
it is considered polite.
Your sender address is invalid; please fix this:
<
http://www.interhack.net/pubs/munging-harmful/>
--
PointedEars
Zend Certified PHP Engineer
Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.