Home
last modified time | relevance | path

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

/plugin/badbehaviour/bad-behavior/
H A Dfunctions.inc.php14 function str_split($string, $split_length=1) argument
16 if ($split_length < 1) {
20 for ($pos=0, $chunks = array(); $pos < strlen($string); $pos+=$split_length) {
21 $chunks[] = substr($string, $pos, $split_length);
/plugin/combo/vendor/symfony/polyfill-mbstring/
H A DMbstring.php542 public static function mb_str_split($string, $split_length = 1, $encoding = null) argument
550 if (1 > $split_length = (int) $split_length) {
565 while (65535 < $split_length) {
567 $split_length -= 65535;
569 $rx .= '.{'.$split_length.'})/us';
577 for ($i = 0; $i < $length; $i += $split_length) {
578 $result[] = mb_substr($string, $i, $split_length, $encoding);
/plugin/barcodes/vendor/jucksearm/php-barcode/lib/
H A DQRcode.php90 * @param $split_length (int) Maximum length of the chunk.
91 * @return If the optional split_length parameter is specified, the returned array will be broken down into chunks with each being split_length in length, otherwise each chunk will be one character in length. FALSE is returned if split_length is less than 1. If the split_length length exceeds the length of string , the entire string is returned as the first (and only) array element.
93 function str_split($string, $split_length=1) { argument
94 if ((strlen($string) > $split_length) OR (!$split_length)) {
97 $parts[] = substr($string, 0, $split_length);
98 $string = substr($string, $split_length);
[all...]