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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to