Jump to content

How does strlen work?


EchoFool

Recommended Posts

I don't understand this but i put a js validation in to avoid characters going greater than 1500 characters.

 

So i made 1500 in MS word processor checked the char count then pasted it into my text area. Then i process it and echo the strlen of the textarea in PHP and it comes out at 1542! Every time its always the same....whats going on there?

 

It's not even possible to go above 1500 with the js in place so what exactly could the other 42 chars be ?

Link to comment
https://forums.phpfreaks.com/topic/94033-how-does-strlen-work/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.