Home
last modified time | relevance | path

Searched refs:split_length (Results 1 – 7 of 7) sorted by relevance

/php-src/ext/standard/tests/strings/
H A Dstr_split_variation7.phpt2 Test str_split() function : usage variations - different integer values for 'split_length' with her…
6 * passing different integer values for 'split_length' and heredoc string as 'str' argument to str_s…
9 echo "*** Testing str_split() : different integer values for 'split_length' with heredoc 'str' ***\…
15 //different values for 'split_length'
26 //loop through each element of $values for 'split_length'
38 *** Testing str_split() : different integer values for 'split_length' with heredoc 'str' ***
H A Dstr_split_variation6.phpt2 Test str_split() function : usage variations - different integer values for 'split_length' argument
6 * passing different integer values for 'split_length' argument to str_split()
9 echo "*** Testing str_split() : different integer values for 'split_length' ***\n";
13 //different values for 'split_length'
24 //loop through each element of $values for 'split_length'
36 *** Testing str_split() : different integer values for 'split_length' ***
H A Dstr_split_basic.phpt9 $split_length = 5;
13 var_dump( str_split($str,$split_length) );
16 echo "-- With split_length as default argument --\n";
40 -- With split_length as default argument --
H A Dstr_split_variation3.phpt7 * split_length is set to 7
13 $split_length = 7;
35 var_dump( str_split($values[$count], $split_length) );
H A Dstr_split_variation4.phpt7 * split_length is set to 5
13 $split_length = 5;
34 var_dump( str_split($values[$count], $split_length) );
H A Dstr_split_variation5.phpt7 * with 'split_length' 10
13 $split_length = 10;
75 var_dump( str_split($str, $split_length) );
/php-src/ext/standard/
H A Dstring.c6102 zend_long split_length = 1; local
6109 Z_PARAM_LONG(split_length)
6112 if (split_length <= 0) {
6117 if ((size_t)split_length >= ZSTR_LEN(str)) {
6127 array_init_size(return_value, (uint32_t)(((ZSTR_LEN(str) - 1) / split_length) + 1));
6129 n_reg_segments = ZSTR_LEN(str) / split_length;
6133 add_next_index_stringl(return_value, p, split_length);
6134 p += split_length;

Completed in 30 milliseconds