/** * Split the sequence string at an approximate length. * * @since 2.7.0 * * @param integer $length Length to split. * * @return array A list containing individual sequence strings. */ public function split($length) { $id = new Horde_Stream_Temp(); $id->add($this->tostring_sort, true); $out = array(); do { $out[] = $id->substring(0, $length) . $id->getToChar(','); } while (!$id->eof()); return $out; }
/** */ public function substring($start = 0, $length = null, $char = false) { return $this->_string ? $this->_string->substring($start, $length, $char) : parent::substring($start, $length, $char); }