xref: /PHP-5.4/ext/iconv/tests/iconv_strlen.phpt (revision f76df0ba)
1--TEST--
2iconv_strlen()
3--SKIPIF--
4<?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
5--FILE--
6<?php
7function foo($str, $charset) {
8	var_dump(strlen($str));
9	var_dump(iconv_strlen($str, $charset));
10}
11
12foo("abc", "ASCII");
13foo("���ܸ� EUC-JP", "EUC-JP");
14?>
15--EXPECT--
16int(3)
17int(3)
18int(13)
19int(10)
20