2
4

1 に答える 1

2

Correct value in first case is 1, not 3.
If you want to get count of bytes, you can use strlen() function, or change iconv.internal_encoding directive in php.ini or by ini_set() (to ISO-8859-1) - but it will affect all iconv-functions, so I recommend to use strlen().

于 2011-05-23T09:07:20.270 に答える