Home
last modified time | relevance | path

Searched refs:glue (Results 1 – 14 of 14) sorted by relevance

/PHP-7.4/ext/standard/tests/strings/
H A Djoin_basic.phpt5 /* Prototype : string join( string $glue, array $pieces )
14 $glue = ',';
18 var_dump( join($glue, $pieces) );
21 $glue = ", "; // multiple car as glue
23 var_dump( join($glue, $pieces) );
27 $glue = ':';
28 var_dump( join($glue, $pieces) );
32 $glue = '/';
33 var_dump( join($glue, $pieces) );
H A Djoin_variation1.phpt2 Test join() function : usage variations - unexpected values for 'glue' argument
5 /* Prototype : string join( string $glue, array $pieces )
12 * testing join() by passing different unexpected value for glue argument
87 // when $glue argument is supplied with different values
88 echo "\n--- Testing join() by supplying different values for 'glue' argument ---\n";
92 $glue = $values [$index];
94 var_dump( join($glue, $pieces) );
104 --- Testing join() by supplying different values for 'glue' argument ---
127 Deprecated: join(): Passing glue string after array is deprecated. Swap the parameters in %s on lin…
133 Deprecated: join(): Passing glue string after array is deprecated. Swap the parameters in %s on lin…
[all …]
H A Dimplode1.phpt5 /* Prototype: string implode ( string $glue, array $pieces );
51 with the $glue string between each element */
53 foreach($glues as $glue) {
55 var_dump( implode($glue, $pieces) );
103 /* only glue */
104 var_dump( implode("glue") );
107 var_dump( implode("glue",1234) );
110 var_dump( implode("glue", NULL) );
115 /* integer as glue */
118 /* NULL as glue */
[all …]
H A Djoin_error.phpt5 /* Prototype : string join( string $glue, array $pieces )
19 $glue = 'string_val';
23 var_dump( join($glue, $pieces, $extra_arg) );
27 $glue = 'string_val';
29 var_dump( join($glue));
H A Dbug78840.phpt5 $glue = '';
6 @implode($glue, $GLOBALS);
H A Djoin_variation5.phpt5 /* Prototype : string join( string $glue, array $pieces )
21 // glue as array & pieces as array containing sub array
24 // numeric value as glue, pieces as array containg sub array
43 Deprecated: join(): Passing glue string after array is deprecated. Swap the parameters in %s on lin…
H A Djoin_variation4.phpt2 Test join() function : usage variations - different values for 'glue' argument
5 /* Prototype : string join( string $glue, array $pieces )
12 * test join() by passing different glue arguments
67 Deprecated: join(): Passing glue string after array is deprecated. Swap the parameters in %s on lin…
H A Djoin_variation3.phpt5 /* Prototype : string join( string $glue, array $pieces )
44 // a multichar glue value
45 $glue = "], [";
51 var_dump( join($glue, $pieces_arrays[$index]) );
H A Djoin_variation6.phpt5 /* Prototype : string join( string $glue, array $pieces )
H A Djoin_variation2.phpt5 /* Prototype : string join( string $glue, array $pieces )
17 $glue = '::';
92 var_dump( join($glue, $pieces) );
/PHP-7.4/Zend/tests/
H A Dunexpected_ref_bug.phpt19 Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in %s on …
/PHP-7.4/ext/standard/
H A Dstring.c1183 PHPAPI void php_implode(const zend_string *glue, zval *pieces, zval *return_value) in php_implode() argument
1237 str = zend_string_safe_alloc(numelems - 1, ZSTR_LEN(glue), len, 0); in php_implode()
1260 cptr -= ZSTR_LEN(glue); in php_implode()
1261 memcpy(cptr, ZSTR_VAL(glue), ZSTR_LEN(glue)); in php_implode()
1274 zend_string *glue, *tmp_glue; in PHP_FUNCTION() local
1288 glue = ZSTR_EMPTY_ALLOC(); in PHP_FUNCTION()
1293 glue = zval_get_tmp_string(arg2, &tmp_glue); in PHP_FUNCTION()
1298 glue = zval_get_tmp_string(arg1, &tmp_glue); in PHP_FUNCTION()
1306 php_implode(glue, pieces, return_value); in PHP_FUNCTION()
H A Dbasic_functions.c2199 ZEND_ARG_INFO(0, glue)
/PHP-7.4/
H A DUPGRADING477 implode($glue, $parts) instead of implode($parts, $glue).

Completed in 66 milliseconds