On 12/22/2012 11:29 AM, Tedd Sperling wrote:
On Dec 21, 2012, at 5:20 PM, Volmar Machado <qi.volmar@xxxxxxxxx> wrote:
What is the result in FF? And on IE? (the echoed string)
That's the problem, it's different.
If the last char in a string is set to null, then it causes JavaScript routines running under IE to behave differently than the exact same JavaScript routines running under Safari or FireFox. This was something I never expected.
However, the web industry has had to deal with IE oddities for many, many years -- the problem remains and it's called IE.
Remember, M$ always has a better idea.
Cheers,
tedd
_____________________
tedd@xxxxxxxxxxxx
http://sperling.com
But basically, I think the work that others have done shows you that
your use of indices on strings is not the best way to manipulate them.
Hey - it's a string - use substr. :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php