Re: [PHP] strlen ?

[email protected] (shiplu)
Newsgroups php.general
Message-ID <CADO5mDDMam_WWoJg-qvEyKC4kZ8sNUh9+mNG6_+msT7Xh_nbZw@mail.gmail.com>
On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner <[email protected]>wrote:

> Mike Hall  comes back as 10, not 9
> F.B. comes back as 5, not 4.
>

Doesn't work for me.

php > var_dump("Mike Hall", strlen("Mike Hall"));
string(9) "Mike Hall"
int(9)

Try trimming it first and then apply strlen.


-- 
Shiplu.Mokadd.im
ImgSign.com | A dynamic signature machine
Innovation distinguishes between follower and leader
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.