Lines Matching refs:substr
2 Testing substr() function
6 /* Prototype: string substr( string str, int start[, int length] )
17 var_dump( substr() );
20 var_dump( substr(NULL) );
23 var_dump( substr("abcde") );
26 var_dump( substr(12345) );
29 var_dump( substr("abcde", 2, 3, 4) );
38 var_dump ( substr($str, 1) );
39 var_dump ( substr($str, 0) );
40 var_dump ( substr($str, -2) );
46 var_dump ( substr($str, 1, 3) );
47 var_dump ( substr($str, 1, 0) );
48 var_dump ( substr($str, 1, -3) );
49 var_dump ( substr($str, 0, 3) );
50 var_dump ( substr($str, 0, 0) );
51 var_dump ( substr($str, 0, -3) );
52 var_dump ( substr($str, -2, 3) );
53 var_dump ( substr($str, -2, 0 ) );
54 var_dump ( substr($str, -2, -3) );
61 var_dump (substr("abcde" , 2, -2) );
62 var_dump (substr("abcde" , -3, -2) );
66 var_dump (substr("abcdef" , 4, -4) );
70 var_dump (substr("abc\x0xy\x0z" ,2) );
74 var_dump (substr('\xIñtërnâtiônàlizætiøn',3) );
78 var_dump (substr("abcd" , -8) );
86 Warning: substr() expects at least 2 parameters, 0 given in %s on line %d
89 Warning: substr() expects at least 2 parameters, 1 given in %s on line %d
92 Warning: substr() expects at least 2 parameters, 1 given in %s on line %d
95 Warning: substr() expects at least 2 parameters, 1 given in %s on line %d
98 Warning: substr() expects at most 3 parameters, 4 given in %s on line %d