Lines Matching refs:trim
2 Test trim() function
6 /* Prototype: string trim( string str [,string charlist] )
10 /* trim with unset/null/boolean variable - retuns an empty string */
13 var_dump( trim($null_var) );
15 var_dump( trim($null_var) );
17 var_dump( trim($null_var) );
19 var_dump( trim($null_var) );
21 /* second argument charlist as null - does not trim any white spaces */
22 var_dump( trim("\ttesting trim", "") );
23 var_dump( trim(" \ttesting trim ", NULL) );
24 var_dump( trim("\ttesting trim ", true) );
30 var_dump( trim() );
32 var_dump( trim("\tstring\n", "\t\n", $null_var) );
33 var_dump( trim(NULL, "", NULL ) );
45 var_dump( trim($obj, "Ot") );
49 var_dump( trim("\x0n1234\x0005678\x0000efgh\xijkl\x0n1", "\x0n1") );
58 var_dump( trim($str, "us\ning") );
68 string(13) " testing trim"
69 string(17) " testing trim "
70 string(15) " testing trim "
74 Warning: trim() expects at least 1 parameter, 0 given in %s on line %d
77 Warning: trim() expects at most 2 parameters, 3 given in %s on line %d
80 Warning: trim() expects at most 2 parameters, 3 given in %s on line %d