News for hackers. Stuff that matters.
Re:A possible future for PHP by kalleboo on Thursday October 02, 2014 @03:52PM (#8402712)
> Strings in php are actually byte arrays. If you take that away, you will break far more than you fix. You are basically killing the baby, so substr() works a tiny bit better

That's a good point I hadn't thought about - processing binary files. I guess what I really want is a "texual string" class that you can trust. The problem right now are the inconsistent "mb_" functions that you sometimes have to use, don't always exist, and aren't always 1:1 mappings.

There are no comments on this comment yet.