On 7/5/2013 2:42 PM, Matijn Woudt wrote:
On Fri, Jul 5, 2013 at 8:39 PM, Jim Giner <jim.giner@xxxxxxxxxxxxxxxxxx>wrote:
I checked them in the db manually. Clicked on the name, selected it, no
extra space highlighted. Cursored through the length of the value - no
extra movements.
That does still not guarantee there are no extra characters. Some
characters are just not visible (NUL, CR, LF, ..)
On 7/5/2013 2:36 PM, Matijn Woudt wrote:
On Fri, Jul 5, 2013 at 8:33 PM, Jim Giner <jim.giner@xxxxxxxxxxxxxxxxxx>wrote:
On 7/5/2013 1:32 PM, shiplu wrote:
On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner <jim.giner@xxxxxxxxxxxxxxxxxx
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?
And the answer is - yes, there is a LF char at the end of my data in my
whole table.
Now the question is - how the heck did I put that in there? Certainly
not intentionally. The data is captured from a d/e screen I wrote and
it simply grabs the post value and inserts a new record with that value
along with some other values. And I don't see anything concatenating a
LF to my string.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php