Re: [PHP4BETA] New function chrcount
| From: | Peter Kovacs | Date: | Mon, 24 Apr 2000 20:50:57 +0000 |
| Subject: | Re: [PHP4BETA] New function chrcount | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14004@lists.php.net to get a copy of this message | ||
Okay then str_count it is. Of course, right now it only looks for every
instance of a single character (as opposed to a substring)... That kind of
functionality is far too complicated for me to implement at the
moment. (See previous posts)
(yet) another patch is attached.
Peter
On Mon, 24 Apr 2000, Andrei Zmievski wrote:
> On Mon, 24 Apr 2000, Peter Kovacs wrote:
> > Very true, however char_count is too similar to count_chars which is what
> > brought on this whole debate to begin with.
>
> That's why I suggested str_count(). Then the function could also count
> occurrences of strings.
>
> -Andrei
>
>
> "Freedom comes when you learn to let go.
> Creation comes when you learn to say no."
> -madonna
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>
>
--------------------------------------------------
Peter D. Kovacs KnowPost.com LLC
Lead Engineer peter@knowpost.com
--------------------------------------------------