Once I say \n as strlen() = 2, if I remember correctly. Definitively not
1.

  Any whitespaces, tabs, newline, or similar inside? strlen() count them
different.

--

Julio Nobrega.

Um dia eu chego lá:
http://sourceforge.net/projects/toca

Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884


"Gil Disatnik" <[EMAIL PROTECTED]> wrote in message
5.1.0.14.2.20020319220006.0148e9a0@servus">news:5.1.0.14.2.20020319220006.0148e9a0@servus...
> Hello there,
>
> I have a 98 characters string (including spaces), wc -c says it's 98
> characters and a file containing this string is 98 bytes as well.
>
> For some reason - strlen() says it's more... it says it's a 104 characters
> strings, when I removed the spaces (using sed on the shell and using
> str_replace on php) - wc said it's 83 characters and strlen() said it's
89...
>
> How could that be? is there another way to get the exact number of
> characters in a string?
>
> Thanks.
>
>
>
> Regards
>
> Gil Disatnik
> UNIX system/security administrator.
>
> GibsonLP@EFnet
>
> _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
> "Windows NT has detected mouse movement, you MUST restart
> your computer before the new settings will take effect, [ OK ]"
> --------------------------------------------------------------------
> Windows is a 32 bit patch to a 16 bit GUI based on a 8 bit operating
> system, written for a 4 bit processor by a 2 bit company which can
> not stand 1 bit of competition.
> -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
>
>



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

Reply via email to