Home
last modified time | relevance | path

Searched refs:delimiter (Results 1 – 25 of 115) sorted by relevance

12345

/PHP-7.1/ext/standard/tests/strings/
H A Dbug20169.phpt6 $delimiter = "|";
8 echo "delimiter: $delimiter\n";
9 implode($delimiter, array("foo", "bar"));
10 echo "delimiter: $delimiter\n";
13 delimiter: |
14 delimiter: |
H A Dexplode_variation1.phpt2 Test explode() function : usage variations - test values for $delimiter argument
6 /* Prototype : array explode ( string $delimiter , string $string [, int $limit ] )
27 // array with different values for $delimiter
75 foreach($delimiters as $delimiter) {
77 var_dump( explode($delimiter, $string, $limit) );
155 Warning: explode(): Empty delimiter in %s on line %d
166 Warning: explode(): Empty delimiter in %s on line %d
170 Warning: explode(): Empty delimiter in %s on line %d
174 Warning: explode(): Empty delimiter in %s on line %d
187 Warning: explode(): Empty delimiter in %s on line %d
[all …]
H A Dexplode1.phpt34 foreach($delimiters as $delimiter) {
36 var_dump( explode($delimiter, $string, -1) );
37 var_dump( explode($delimiter, $string, 0) );
38 var_dump( explode($delimiter, $string, 1) );
39 var_dump( explode($delimiter, $string, 2) );
91 Warning: explode(): Empty delimiter in %s on line %d
94 Warning: explode(): Empty delimiter in %s on line %d
97 Warning: explode(): Empty delimiter in %s on line %d
100 Warning: explode(): Empty delimiter in %s on line %d
104 Warning: explode(): Empty delimiter in %s on line %d
[all …]
H A Dexplode_error.phpt6 /* Prototype : array explode ( string $delimiter , string $string [, int $limit ] )
17 $delimiter = " ";
21 var_dump( explode($delimiter, $string, $limit, $extra_arg) );
/PHP-7.1/ext/standard/tests/file/
H A Dfputcsv_variation2.phpt2 Test fputcsv() : usage variations - with delimiter as NULL
10 /* Testing fputcsv() to write to a file when delimiter is NULL */
12 echo "*** Testing fputcsv() : with delimiter as NULL ***\n";
15 1st element is delimiter, 2nd element is enclosure
53 $delimiter = $csv_list[0];
76 *** Testing fputcsv() : with delimiter as NULL ***
80 Warning: fputcsv(): delimiter must be a character in %s on line %d
88 Warning: fputcsv(): delimiter must be a character in %s on line %d
96 Warning: fputcsv(): delimiter must be a character in %s on line %d
104 Warning: fputcsv(): delimiter must be a character in %s on line %d
[all …]
H A Dfputcsv_variation4.phpt2 Test fputcsv() : usage variations - with delimiter and enclosure as NULL
15 1st element is delimiter, 2nd element is enclosure
53 $delimiter = $csv_list[0];
76 *** Testing fputcsv() : with delimiter and enclosure as NULL ***
80 Warning: fputcsv(): delimiter must be a character in %s on line %d
88 Warning: fputcsv(): delimiter must be a character in %s on line %d
96 Warning: fputcsv(): delimiter must be a character in %s on line %d
104 Warning: fputcsv(): delimiter must be a character in %s on line %d
112 Warning: fputcsv(): delimiter must be a character in %s on line %d
120 Warning: fputcsv(): delimiter must be a character in %s on line %d
[all …]
H A Dfputcsv_variation13.phpt2 Test fputcsv() : usage variations - with default enclosure & delimiter of two chars
16 1st element is delimiter, 2nd element is enclosure
54 $delimiter = $csv_list[0];
81 Notice: fputcsv(): delimiter must be a single character in %s on line %d
90 Notice: fputcsv(): delimiter must be a single character in %s on line %d
99 Notice: fputcsv(): delimiter must be a single character in %s on line %d
108 Notice: fputcsv(): delimiter must be a single character in %s on line %d
117 Notice: fputcsv(): delimiter must be a single character in %s on line %d
126 Notice: fputcsv(): delimiter must be a single character in %s on line %d
135 Notice: fputcsv(): delimiter must be a single character in %s on line %d
[all …]
H A Dfgetcsv_variation3.phpt2 Test fgetcsv() : usage variations - with delimiter as NULL
12 echo "*** Testing fgetcsv() : with delimiter as NULL ***\n";
15 1st element is delimiter, 2nd element is enclosure
50 $delimiter = $csv_list[0];
92 *** Testing fgetcsv() : with delimiter as NULL ***
96 Warning: fgetcsv(): delimiter must be a character in %s on line %d
103 Warning: fgetcsv(): delimiter must be a character in %s on line %d
110 Warning: fgetcsv(): delimiter must be a character in %s on line %d
117 Warning: fgetcsv(): delimiter must be a character in %s on line %d
124 Warning: fgetcsv(): delimiter must be a character in %s on line %d
[all …]
H A Dfgetcsv_variation5.phpt2 Test fgetcsv() : usage variations - with delimiter & enclosure as NULL
11 Testing fgetcsv() to read from a file when provided with delimiter and
15 echo "*** Testing fgetcsv() : with delimiter & enclosure as NULL ***\n";
18 1st element is delimiter, 2nd element is enclosure
53 $delimiter = $csv_list[0];
93 *** Testing fgetcsv() : with delimiter & enclosure as NULL ***
97 Warning: fgetcsv(): delimiter must be a character in %s on line %d
104 Warning: fgetcsv(): delimiter must be a character in %s on line %d
111 Warning: fgetcsv(): delimiter must be a character in %s on line %d
118 Warning: fgetcsv(): delimiter must be a character in %s on line %d
[all …]
H A Dfgetcsv_variation19.phpt2 Test fgetcsv() : usage variations - with default enclosure & delimiter of two chars
12 and with delimiter of two characters
18 1st element is delimiter & 2nd element is csv fields
49 $delimiter = $csv_list[0];
72 // use delimiter & enclosure char of two chars
94 Notice: fgetcsv(): delimiter must be a single character in %s on line %d
104 Notice: fgetcsv(): delimiter must be a single character in %s on line %d
114 Notice: fgetcsv(): delimiter must be a single character in %s on line %d
124 Notice: fgetcsv(): delimiter must be a single character in %s on line %d
134 Notice: fgetcsv(): delimiter must be a single character in %s on line %d
[all …]
H A Dfputcsv_variation9.phpt2 Test fputcsv() : usage variations - two chars as enclosure & delimiter
13 echo "*** Testing fputcsv() : with two chars as enclosure & delimiter ***\n";
16 1st element is delimiter, 2nd element is enclosure
54 $delimiter = $csv_list[0];
78 *** Testing fputcsv() : with two chars as enclosure & delimiter ***
82 Notice: fputcsv(): delimiter must be a single character in %s on line %d
93 Notice: fputcsv(): delimiter must be a single character in %s on line %d
104 Notice: fputcsv(): delimiter must be a single character in %s on line %d
115 Notice: fputcsv(): delimiter must be a single character in %s on line %d
126 Notice: fputcsv(): delimiter must be a single character in %s on line %d
[all …]
H A Dfputcsv_variation14.phpt16 1st element is delimiter, 2nd element is enclosure
62 $delimiter = $csv_list[0];
89 Notice: fputcsv(): delimiter must be a single character in %s on line %d
99 Notice: fputcsv(): delimiter must be a single character in %s on line %d
109 Notice: fputcsv(): delimiter must be a single character in %s on line %d
119 Notice: fputcsv(): delimiter must be a single character in %s on line %d
129 Notice: fputcsv(): delimiter must be a single character in %s on line %d
139 Notice: fputcsv(): delimiter must be a single character in %s on line %d
149 Notice: fputcsv(): delimiter must be a single character in %s on line %d
159 Notice: fputcsv(): delimiter must be a single character in %s on line %d
[all …]
H A Dfgetcsv_variation12.phpt12 echo "*** Testing fgetcsv() : with two chars as enclosure & delimiter ***\n";
15 1st element is delimiter, 2nd element is enclosure
48 $delimiter = $csv_list[0];
73 // use delimiter & enclosure char of two chars
92 *** Testing fgetcsv() : with two chars as enclosure & delimiter ***
96 Notice: fgetcsv(): delimiter must be a single character in %s on line %d
108 Notice: fgetcsv(): delimiter must be a single character in %s on line %d
120 Notice: fgetcsv(): delimiter must be a single character in %s on line %d
132 Notice: fgetcsv(): delimiter must be a single character in %s on line %d
144 Notice: fgetcsv(): delimiter must be a single character in %s on line %d
[all …]
H A Dfgetcsv_variation24.phpt15 echo "*** Testing fgetcsv() : with two chars as enclosure & delimiter ***\n";
18 1st element is delimiter, 2nd element is enclosure
51 $delimiter = $csv_list[0];
75 // use delimiter & enclosure char of two chars
94 *** Testing fgetcsv() : with two chars as enclosure & delimiter ***
98 Notice: fgetcsv(): delimiter must be a single character in %s on line %d
110 Notice: fgetcsv(): delimiter must be a single character in %s on line %d
122 Notice: fgetcsv(): delimiter must be a single character in %s on line %d
134 Notice: fgetcsv(): delimiter must be a single character in %s on line %d
146 Notice: fgetcsv(): delimiter must be a single character in %s on line %d
[all …]
/PHP-7.1/ext/standard/tests/streams/
H A Dbug63240.phpt2 Bug #63240: stream_get_line() return contains delimiter string
6 $delimiter = 'MM';
7 $str = str_repeat('.', 8191) . $delimiter . "rest";
10 $line = stream_get_line($fd, 9000, $delimiter);
12 $line = stream_get_line($fd, 9000, $delimiter);
/PHP-7.1/ext/spl/tests/
H A DSplFileObject_fputcsv_variation13.phpt2 Test fputcsv() : usage variations - with default enclosure & delimiter of two chars
6 /* Testing fputcsv() to write to a file when default enclosure value and delimiter
9 echo "*** Testing fputcsv() : with default enclosure & delimiter of two chars ***\n";
25 *** Testing fputcsv() : with default enclosure & delimiter of two chars ***
27 Warning: SplFileObject::fputcsv(): delimiter must be a character in %s on line %d
H A DSplFileObject_fputcsv_variation14.phpt2 Test fputcsv() : usage variations - with enclosure & delimiter of two chars
6 /* Testing fputcsv() to write to a file when default enclosure value and delimiter
9 echo "*** Testing fputcsv() : with enclosure & delimiter of two chars and file opened in read mode …
25 *** Testing fputcsv() : with enclosure & delimiter of two chars and file opened in read mode ***
H A DSplFileObject_fgetcsv_delimiter_error.phpt2 SplFileObject::fgetcsv with alternative delimiter
22 Warning: SplFileObject::fgetcsv(): delimiter must be a character in %s on line %d
/PHP-7.1/ext/standard/tests/mail/
H A Dezmlm_hash_variation1.phpt2 Test explode() function : usage variations - test values for $delimiter argument
6 /* Prototype : array explode ( string $delimiter , string $string [, int $limit ] )
27 // array with different values for $delimiter
75 foreach($delimiters as $delimiter) {
77 var_dump( explode($delimiter, $string, $limit) );
155 Warning: explode(): Empty delimiter in %s on line %d
166 Warning: explode(): Empty delimiter in %s on line %d
170 Warning: explode(): Empty delimiter in %s on line %d
174 Warning: explode(): Empty delimiter in %s on line %d
187 Warning: explode(): Empty delimiter in %s on line %d
[all …]
/PHP-7.1/ext/mbstring/tests/
H A Dmb_strpos_variation2.phpt138 Warning: mb_strpos(): Empty delimiter in %s on line %d
143 Warning: mb_strpos(): Empty delimiter in %s on line %d
151 Warning: mb_strpos(): Empty delimiter in %s on line %d
159 Warning: mb_strpos(): Empty delimiter in %s on line %d
164 Warning: mb_strpos(): Empty delimiter in %s on line %d
169 Warning: mb_strpos(): Empty delimiter in %s on line %d
186 Warning: mb_strpos(): Empty delimiter in %s on line %d
191 Warning: mb_strpos(): Empty delimiter in %s on line %d
H A Dmb_stripos_variation2.phpt139 Warning: mb_stripos(): Empty delimiter in %s on line %d
144 Warning: mb_stripos(): Empty delimiter in %s on line %d
152 Warning: mb_stripos(): Empty delimiter in %s on line %d
160 Warning: mb_stripos(): Empty delimiter in %s on line %d
165 Warning: mb_stripos(): Empty delimiter in %s on line %d
170 Warning: mb_stripos(): Empty delimiter in %s on line %d
187 Warning: mb_stripos(): Empty delimiter in %s on line %d
192 Warning: mb_stripos(): Empty delimiter in %s on line %d
H A Dmb_strstr_variation2.phpt168 Error: 2 - mb_strstr(): Empty delimiter, %s(%d)
172 Error: 2 - mb_strstr(): Empty delimiter, %s(%d)
179 Error: 2 - mb_strstr(): Empty delimiter, %s(%d)
186 Error: 2 - mb_strstr(): Empty delimiter, %s(%d)
190 Error: 2 - mb_strstr(): Empty delimiter, %s(%d)
194 Error: 2 - mb_strstr(): Empty delimiter, %s(%d)
205 Error: 2 - mb_strstr(): Empty delimiter, %s(%d)
209 Error: 2 - mb_strstr(): Empty delimiter, %s(%d)
H A Dmb_stristr_variation2.phpt168 Error: 2 - mb_stristr(): Empty delimiter, %s(%d)
172 Error: 2 - mb_stristr(): Empty delimiter, %s(%d)
179 Error: 2 - mb_stristr(): Empty delimiter, %s(%d)
186 Error: 2 - mb_stristr(): Empty delimiter, %s(%d)
190 Error: 2 - mb_stristr(): Empty delimiter, %s(%d)
194 Error: 2 - mb_stristr(): Empty delimiter, %s(%d)
205 Error: 2 - mb_stristr(): Empty delimiter, %s(%d)
209 Error: 2 - mb_stristr(): Empty delimiter, %s(%d)
/PHP-7.1/ext/spl/internal/
H A Dsplfileobject.inc29 private $delimiter= ',';
73 * @param delimiter character used as field separator
77 function fgetcsv($delimiter = NULL, $enclosure = NULL)
84 $delimiter = $this->delimiter;
95 * Set the delimiter and enclosure character used in fgetcsv
97 * @param delimiter new delimiter, defaults to ','
100 function setCsvControl($delimiter = ';', $enclosure = '"')
102 $this->delimiter = $delimiter;
107 * @return array(delimiter, enclosure) as used in fgetcsv
109 function getCsvControl($delimiter = ',', $enclosure = '"')
[all …]
/PHP-7.1/ext/pcre/tests/
H A Dpreg_replace_error1.phpt14 $regex_array = array('abcdef', //Regex without delimiter
15 '/[a-zA-Z]', //Regex without closing delimiter
16 '[a-zA-Z]/', //Regex without opening delimiter
39 Warning: preg_replace(): No ending delimiter '/' found in %spreg_replace_error1.php on line %d

Completed in 69 milliseconds

12345