|
Posted by Richard Davey on 11/28/05 18:12
Hi Jared,
Monday, November 28, 2005, 4:04:29 PM, you wrote:
> Just been looking over some code, and saw
> if (strlen($data) !== file_put_contents($filename, $data))
> ....
> where $data is UTF8, so wondering if this is going to break
> in PHP6, if so what should be the equivalent code?
If $data is UTF8 already, shouldn't you really be using mb_strlen? In
which case, I'd expect it to function exactly the same in PHP6.
Cheers,
Rich
--
Zend Certified Engineer
PHP Development Services
http://www.corephp.co.uk
Navigation:
[Reply to this message]
|