Home
last modified time | relevance | path

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

/php-src/ext/standard/tests/strings/
H A Djoin_basic.phpt8 $glue = ',';
12 var_dump( join($glue, $pieces) );
15 $glue = ", "; // multiple car as glue
17 var_dump( join($glue, $pieces) );
21 $glue = ':';
22 var_dump( join($glue, $pieces) );
26 $glue = '/';
27 var_dump( join($glue, $pieces) );
H A Dimplode_error.phpt5 /* only glue */
7 var_dump(implode("glue"));
14 var_dump(implode("glue", NULL));
19 /* integer as glue */
H A Djoin_variation1.phpt2 Test join() function : usage variations - unexpected values for 'glue' argument
6 * testing join() by passing different unexpected value for glue argument
67 // when $glue argument is supplied with different values
68 echo "\n--- Testing join() by supplying different values for 'glue' argument ---\n";
72 $glue = $values [$index];
75 var_dump(join($glue, $pieces));
88 --- Testing join() by supplying different values for 'glue' argument ---
H A Dbug78840.phpt5 $glue = '';
6 @implode($glue, $GLOBALS);
H A Djoin_error.phpt9 $glue = 'string_val';
12 var_dump(join($glue));
H A Dimplode_variation.phpt15 /* loop to output string with ', ' as $glue, using implode() */
21 echo "\n*** Testing implode() with variations of glue ***\n";
46 with the $glue string between each element */
48 foreach($glues as $glue) {
51 var_dump(implode($glue, $pieces));
180 *** Testing implode() with variations of glue ***
H A Djoin_variation4.phpt2 Test join() function : usage variations - different values for 'glue' argument
6 * test join() by passing different glue arguments
H A Djoin_variation5.phpt15 // glue as array & pieces as array containing sub array
22 // numeric value as glue, pieces as array containing sub array
H A Djoin_variation3.phpt38 // a multichar glue value
39 $glue = "], [";
45 var_dump( join($glue, $pieces_arrays[$index]) );
H A Djoin_error1.phpt11 $glue = '::';
86 var_dump(join($glue, $pieces));
/php-src/ext/mbstring/tests/
H A Dmb_convert_kana.phpt40 echo "Using 'glue' mode:\n";
48 echo "Not using 'glue' mode:\n";
166 Using 'glue' mode:
174 Not using 'glue' mode:
/php-src/ext/standard/
H A Dstring.c960 PHPAPI void php_implode(const zend_string *glue, HashTable *pieces, zval *return_value) in php_implode() argument
986 uint32_t flags = ZSTR_GET_COPYABLE_CONCAT_PROPERTIES(glue); in php_implode()
1018 str = zend_string_safe_alloc(numelems - 1, ZSTR_LEN(glue), len, 0); in php_implode()
1042 cptr -= ZSTR_LEN(glue); in php_implode()
1043 memcpy(cptr, ZSTR_VAL(glue), ZSTR_LEN(glue)); in php_implode()

Completed in 28 milliseconds