Re: foreach() for strings
| From: | Reindl Harald | Date: | Wed, 22 Jun 2011 12:21:10 +0000 |
| Subject: | Re: foreach() for strings | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53506@lists.php.net to get a copy of this message | ||
Am 22.06.2011 14:14, schrieb Gustavo Lopes:
> Em Wed, 22 Jun 2011 12:14:40 +0100, Reindl Harald <h.reindl@thelounge.net> escreveu:
>> Am 22.06.2011 07:24, schrieb Tomas Kuliavas:
>>> 2011.06.21 23:27 Reindl Harald rašė:
>>>> i do not understand any word and miss a simple str_is_utf8()
>>>
>>> Such function uses six lines in PHP.
>>
>> so why do you not post them?t
>>
>
> It's actually 3 lines:
>
> function str_is_utf8($str) {
> return $str == "" || htmlspecialchars($str, 0, "UTF-8");
> }
WTF should this do?
this won't return boolean
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc