Re: Re: counting chars..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Thursday, December 16, 2004 6:09 AM
Subject:  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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux