Re: strlen ?

From: Date: Fri, 05 Jul 2013 18:36:47 +0000
Subject: Re: strlen ?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-321548@lists.php.net to get a copy of this message
On Fri, Jul 5, 2013 at 8:33 PM, Jim Giner <jim.giner@albanyhandball.com>wrote: > On 7/5/2013 1:32 PM, shiplu wrote: > >> On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner <jim.giner@albanyhandball.com> >> **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. >> >> >> Why would I need to trim something that I can already see doesn't have > any trailing or leading characters? > > Because there are characters you can't see?

« previous php.general (#321548) next »