--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"; } } ?> --EXPECT-- *** 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(48) "VGhpcyBpcyBhbiBFbmdsaXNoIHN0cmluZy4gMDEyMzQ1Njc4" [1]=> string(24) "VGhpcyBpcyBhbiBFbmdsaXM=" } int(17) array(1) { [0]=> string(24) "VGhpcyBpcyBhbiBFbmdsaXM=" } **-- 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) array(0) { } Done