--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-- bool(true) bool(true) --With $regs argument -- bool(true) array(2) { [0]=> string(48) "VGhpcyBpcyBhbiBFbmdsaXNoIHN0cmluZy4gMDEyMzQ1Njc4" [1]=> string(24) "VGhpcyBpcyBhbiBFbmdsaXM=" } bool(true) array(1) { [0]=> string(24) "VGhpcyBpcyBhbiBFbmdsaXM=" } **-- Multibyte String --** -- Without $regs argument -- bool(true) bool(false) -- With $regs argument -- bool(true) array(3) { [0]=> string(48) "5pel5pys6Kqe44OG44Kt44K544OI44Gn44GZ44CCMDEyMzQ=" [1]=> string(12) "5pel5pys6Kqe" [2]=> string(8) "MTIzNA==" } bool(false) array(0) { } Done