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

/PHP_5_6/ext/standard/
H A Dstring.c5528 /* {{{ proto array str_split(string str [, int split_length])
5529 Convert a string to an array. If split_length is specified, break the string down into chunks each split_length characters long. */
5534 long split_length = 1; local
5538 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, &split_length) == FAILURE) {
5542 if (split_length <= 0) {
5547 array_init_size(return_value, ((str_len - 1) / split_length) + 1);
5549 if (split_length >= str_len) {
5554 n_reg_segments = str_len / split_length;
5558 add_next_index_stringl(return_value, p, split_length,
[all...]

Completed in 13 milliseconds