Lines Matching refs:mb_trim
2 mb_trim() function tests
10 var_dump('ABC' === mb_trim('ABC'));
13 var_dump('ABC' === mb_trim(" \0\t\nABC \0\t\n"));
16 var_dump(" \0\t\nABC \0\t\n" === mb_trim(" \0\t\nABC \0\t\n",''));
20 var_dump(mb_trim(""));
26 var_dump(mb_trim(" あいうえおあお ", " ", "UTF-8"));
27 var_dump(mb_trim('foo BAR Spaß', 'ß', "UTF-8"));
28 var_dump(mb_trim('foo BAR Spaß', 'f', "UTF-8"));
31 var_dump(mb_trim('foo BAR Spaß', 'ßf', "UTF-8"));
32 var_dump(mb_trim('foo BAR Spaß', 'fß', "UTF-8"));
33 var_dump(mb_trim(" あいうおえお あ", " あ", "UTF-8"));
34 var_dump(mb_trim(" あいうおえお あ", "あ ", "UTF-8"));
35 var_dump(mb_trim(" あいうおえお a", "あa", "UTF-8"));
36 var_dump(mb_trim(" あいうおえお a", "\xe3", "UTF-8"));
39 var_dump(mb_trim(str_repeat(" ", 129)));
40 var_dump(mb_trim(str_repeat(" ", 129) . "a"));
48 var_dump(mb_trim($trim_chars . "hello" . $trim_chars, $trim_chars));
58 var_dump(mb_trim(" \f\n\r\v\x00\u{00A0}\u{1680}\u{2000}\u{2001}\u{2002}\u{2003}\u{2004}\u{2005}\u{2…
66 var_dump(mb_trim(" abcd ", ""));
71 var_dump(mb_convert_encoding(mb_trim("\x81\x40\x82\xa0\x81\x40", "\x81\x40", "SJIS"), "UTF-8", "SJI…
74 var_dump(mb_trim("foo", "oo"));
78 var_dump(mb_trim( "\u{180F}", "", "NULL"));
138 string(73) "mb_trim(): Argument #3 ($encoding) must be a valid encoding, "NULL" given"