--TEST-- Test mb_ereg() function : basic functionality --SKIPIF-- --FILE-- $value) { echo " [$key]=>\n "; if (is_string($value)) { var_dump(base64_encode($value)); } else { var_dump($value); } } echo "}\n"; } else { echo "NULL\n"; } } ?> --EXPECTF-- *** Testing mb_ereg() : basic functionality *** Regex encoding set to utf-8 **-- ASCII String --** -- Without $regs argument-- int(1) int(1) --With $regs argument -- int(36) array(2) { [0]=> string(36) "This is an English string. 012345678" [1]=> string(17) "This is an Englis" } int(17) array(1) { [0]=> string(17) "This is an Englis" } **-- Multibyte String --** -- Without $regs argument -- int(1) bool(false) -- With $regs argument -- int(35) array(3) { [0]=> string(48) "5pel5pys6Kqe44OG44Kt44K544OI44Gn44GZ44CCMDEyMzQ=" [1]=> string(12) "5pel5pys6Kqe" [2]=> string(8) "MTIzNA==" } bool(false) NULL Done