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

/PHP_TRUNK/ext/standard/
H A Dstring.c5334 /* {{{ proto array str_split(string str [, int split_length])
5335 Convert a string to an array. If split_length is specified, break the string down into chunks each split_length characters long. */
5339 zend_long split_length = 1; local
5343 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "S|l", &str, &split_length) == FAILURE) {
5347 if (split_length <= 0) {
5353 if (0 == str->len || (size_t)split_length >= str->len) {
5359 array_init_size(return_value, ((str->len - 1) / split_length) + 1);
5361 n_reg_segments = str->len / split_length;
5365 add_next_index_stringl(return_value, p, split_length);
[all...]

Completed in 12 milliseconds