Re: Re: counting chars..
| From: | Sebastian | Date: | Thu, 16 Dec 2004 14:19:14 +0000 |
| Subject: | Re: Re: counting chars.. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204488@lists.php.net to get a copy of this message | ||
strlen is not accurate unless its a raw string, meaning just alpha chars, or
numbers..
otherwise you should run trim, strip_tags and the likes first.
----- Original Message -----
From: "M. Sokolewicz" <tularis@php.net>
To: <php-general@lists.php.net>
Sent: Thursday, December 16, 2004 6:09 AM
Subject: [PHP] Re: counting chars..
> Louie Miranda wrote:
>
> > <?php
> > $string = "function yes good";
> > $display = count_chars($string);
> >
> > echo $display;
> > ?>
> >
> > i know this is wrong, but how can i count chars used here?
> >
> strlen()
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>