Lines Matching refs:string
5 /* Prototype : string chop ( string $str [, string $charlist] )
6 * Description: Strip whitespace (or other characters) from the end of a string
7 * Source code: ext/standard/string.c
11 * Testing chop() : with nulls embedded in input string
14 echo "*** Testing chop() : string with embedded nulls ***\n";
31 foreach($strings_with_nulls as $string) {
33 var_dump( chop($string) );
34 var_dump( chop($string, "\0") );
35 var_dump( chop($string, '\0') );
42 *** Testing chop() : string with embedded nulls ***
45 string(11) "helloworld"
46 string(11) "helloworld"
47 string(11) "helloworld"
50 string(6) "hello"
51 string(6) "hello"
52 string(6) "hello"
55 string(5) "hello"
56 string(5) "hello"
57 string(6) "hello"
60 string(13) "hello world"
61 string(13) "hello world"
62 string(15) "hello world"
65 string(9) "\0hello\0"
66 string(9) "\0hello\0"
67 string(7) "\0hello"
70 string(9) "hello\0\0"
71 string(9) "hello\0\0"
72 string(5) "hello"
75 string(0) ""
76 string(0) ""
77 string(1) ""
80 string(0) ""
81 string(0) ""
82 string(2) ""
85 string(6) "hello"
86 string(6) "hello"
87 string(7) "hello"
90 string(11) "helloworld"
91 string(11) "helloworld"
92 string(11) "helloworld"