xref: /PHP-8.2/ext/mbstring/tests/mb_eregi.phpt (revision 74859783)
1--TEST--
2mb_eregi() and invalid arguments
3--EXTENSIONS--
4mbstring
5--SKIPIF--
6<?php
7if (!function_exists("mb_eregi")) print "skip mb_eregi() not available";
8?>
9--FILE--
10<?php
11
12mb_regex_encoding('utf-8');
13
14var_dump(mb_eregi('z', 'XYZ'));
15var_dump(mb_eregi('xyzp', 'XYZ'));
16var_dump(mb_eregi('ö', 'Öäü'));
17?>
18--EXPECT--
19bool(true)
20bool(false)
21bool(true)
22