Searched defs:split_length (Results 1 - 1 of 1) sorted by relevance

/PHP_TRUNK/ext/standard/
H A Dstring.c5606 /* {{{ proto array str_split(string str [, int split_length])
5607 Convert a string to an array. If split_length is specified, break the string down into chunks each split_length characters long. */
5611 zend_long split_length = 1; local
5615 if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|l", &str, &split_length) == FAILURE) {
5619 if (split_length <= 0) {
5625 if (0 == ZSTR_LEN(str) || (size_t)split_length >= ZSTR_LEN(str)) {
5631 array_init_size(return_value, (uint32_t)(((ZSTR_LEN(str) - 1) / split_length) + 1));
5633 n_reg_segments = ZSTR_LEN(str) / split_length;
5637 add_next_index_stringl(return_value, p, split_length);
[all...]

Completed in 12 milliseconds