Re: count number of occurences of character in a string
| From: | Richard Davey | Date: | Tue, 08 Jun 2004 10:17:56 +0000 |
| Subject: | Re: count number of occurences of character in a string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187863@lists.php.net to get a copy of this message | ||
Hello Diana,
Tuesday, June 8, 2004, 11:11:27 AM, you wrote:
DC> what function can I use to count the number of occurences of a certain
DC> character in a string?
substr_count or count_chars would work.
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I am not young enough to know everything." - Oscar Wilde