xref: /PHP-8.2/ext/iconv/tests/iconv_strlen.phpt (revision e9f783fc)
1--TEST--
2iconv_strlen()
3--EXTENSIONS--
4iconv
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