Re: foreach() for strings
| From: | Reindl Harald | Date: | Wed, 22 Jun 2011 13:52:13 +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-53512@lists.php.net to get a copy of this message | ||
Am 22.06.2011 15:45, schrieb Lars Schultz:
> Am 22.06.2011 15:40, schrieb Reindl Harald:
>> and why this will not return true if $str is ISO-8859-1?
> If you RTFM (in your jargon) you would know.
>
> http://ch.php.net/manual/en/function.htmlspecialchars.php
> (Return value Section)
i read the fucking manual
> If the input string contains an invalid code unit sequence within the given charset
> and the ENT_IGNORE flag is not set, then htmlspecialchars() will return an
> empty string.
so damend NOT ALL CHARACTERS are multibyte and so it will return true for "hello"
so what will you tell me above boy?
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc