Home
last modified time | relevance | path

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

/PHP-5.5/ext/standard/tests/strings/
H A Dstr_split_basic.phpt5 /* Prototype : array str_split(string $str [, int $split_length])
6 * Description: Convert a string to an array. If split_length is
8 split_length characters long.
17 $split_length = 5;
21 var_dump( str_split($str,$split_length) );
24 echo "-- With split_length as default argument --\n";
44 -- With split_length as default argument --
H A Dstr_split_variation7_64bit.phpt2 Test str_split() function : usage variations - different integer values for 'split_length' with her…
9 /* Prototype : array str_split(string $str [, int $split_length])
10 * Description: Convert a string to an array. If split_length is
12 split_length characters long.
18 * passing different integer values for 'split_length' and heredoc string as 'str' argument to str_s…
21 echo "*** Testing str_split() : different intger values for 'split_length' with heredoc 'str' ***\n…
27 //different values for 'split_length'
39 //loop through each element of $values for 'split_length'
47 *** Testing str_split() : different intger 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
9 /* Prototype : array str_split(string $str [, int $split_length])
10 * Description: Convert a string to an array. If split_length is
12 split_length characters long.
18 * passing different integer values for 'split_length' argument to str_split()
21 echo "*** Testing str_split() : different intger values for 'split_length' ***\n";
25 //different values for 'split_length'
37 //loop through each element of $values for 'split_length'
45 *** Testing str_split() : different intger values for 'split_length' ***
H A Dstr_split_variation6_64bit.phpt2 Test str_split() function : usage variations - different integer values for 'split_length' argument
9 /* Prototype : array str_split(string $str [, int $split_length])
10 * Description: Convert a string to an array. If split_length is
12 split_length characters long.
18 * passing different integer values for 'split_length' argument to str_split()
21 echo "*** Testing str_split() : different intger values for 'split_length' ***\n";
25 //different values for 'split_length'
37 //loop through each element of $values for 'split_length'
45 *** Testing str_split() : different intger values for 'split_length' ***
H A Dstr_split_variation7.phpt2 Test str_split() function : usage variations - different integer values for 'split_length' with her…
9 /* Prototype : array str_split(string $str [, int $split_length])
10 * Description: Convert a string to an array. If split_length is
12 split_length characters long.
18 * passing different integer values for 'split_length' and heredoc string as 'str' argument to str_s…
21 echo "*** Testing str_split() : different intger values for 'split_length' with heredoc 'str' ***\n…
27 //different values for 'split_length'
39 //loop through each element of $values for 'split_length'
47 *** Testing str_split() : different intger values for 'split_length' with heredoc 'str' ***
H A Dstr_split_error.phpt5 /* Prototype : array str_split(string $str [, int $split_length])
6 * Description: Convert a string to an array. If split_length is
8 split_length characters long.
22 $split_length = 4;
24 var_dump( str_split( $str, $split_length, $extra_arg) );
H A Dstr_split_variation3.phpt5 /* Prototype : array str_split(string $str [, int $split_length])
6 * Description: Convert a string to an array. If split_length is
8 split_length characters long.
15 * split_length is set to 7
21 $split_length = 7;
43 var_dump( str_split($values[$count], $split_length) );
H A Dstr_split_variation4.phpt5 /* Prototype : array str_split(string $str [, int $split_length])
6 * Description: Convert a string to an array. If split_length is
8 split_length characters long.
15 * split_length is set to 5
21 $split_length = 5;
42 var_dump( str_split($values[$count], $split_length) );
H A Dstr_split_variation5.phpt5 /* Prototype : array str_split(string $str [, int $split_length] )
6 * Description: Convert a string to an array. If split_length is
8 split_length characters long.
15 * with 'split_length' 10
21 $split_length = 10;
83 var_dump( str_split($str, $split_length) );
H A Dstr_split_variation2_64bit.phpt2 Test str_split() function : usage variations - unexpected values for 'split_length' argument
9 /* Prototype : array str_split(string $str [, int $split_length])
10 * Description: Convert a string to an array. If split_length is
12 split_length characters long.
17 echo "*** Testing str_split() : unexpected values for 'split_length' ***\n";
20 $str = 'variation2:split_length';
38 //different values for 'split_length'
86 // loop through each element of $values for 'split_length'
98 *** Testing str_split() : unexpected values for 'split_length' ***
115 string(23) "variation2:split_length"
H A Dstr_split_variation2.phpt2 Test str_split() function : usage variations - unexpected values for 'split_length' argument
9 /* Prototype : array str_split(string $str [, int $split_length])
10 * Description: Convert a string to an array. If split_length is
12 split_length characters long.
17 echo "*** Testing str_split() : unexpected values for 'split_length' ***\n";
20 $str = 'variation2:split_length';
38 //different values for 'split_length'
86 // loop through each element of $values for 'split_length'
98 *** Testing str_split() : unexpected values for 'split_length' ***
H A Dstr_split_variation1.phpt5 /* Prototype : array str_split(string $str [, int $split_length])
6 * Description: Convert a string to an array. If split_length is
8 split_length characters long.
16 $split_length = 3;
87 var_dump( str_split($values[$count], $split_length) );
/PHP-5.5/ext/standard/
H A Dstring.c5562 long split_length = 1; local
5566 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, &split_length) == FAIL…
5570 if (split_length <= 0) {
5575 array_init_size(return_value, ((str_len - 1) / split_length) + 1);
5577 if (split_length >= str_len) {
5582 n_reg_segments = str_len / split_length;
5586 add_next_index_stringl(return_value, p, split_length, 1);
5587 p += split_length;
H A Dbasic_functions.c2482 ZEND_ARG_INFO(0, split_length)

Completed in 55 milliseconds