summaryrefslogtreecommitdiff
path: root/ext/iconv/tests/iconv_strlen.phpt
blob: 2c815f4f310d187dbe62f336a3ecb6b4c11b2981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
iconv_strlen()
--SKIPIF--
<?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
--FILE--
<?php
function foo($str, $charset) {
	var_dump(strlen($str));
	var_dump(iconv_strlen($str, $charset));
}

foo("abc", "ASCII");
foo("ÆüËܸì EUC-JP", "EUC-JP");
?>
--EXPECT--
int(3)
int(3)
int(13)
int(10)