Reply to Re: [PHP] PHP6, UTF & strlen

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация