protected function _htmlHandling() { // $oRegexSentence = Regex::word()->setModifiers($this->_m()); // $aRegexPos = $this->_getRegexPositions($oRegexSentence); // // print_r($aRegexPos); $oRegex = Regex::char()->setModifiers($this->_m()); return $this->_limitByRegex(8, $oRegex); }
protected function _process($sString, $iSplitLength) { if ($iSplitLength < 1) { return false; } Regex::char()->setModifiers($this->_m())->matchAll($sString, $aCaptures); if (!$aCaptures[0]) { return $aCaptures[0]; } $aChunks = array_chunk($aCaptures[0], $iSplitLength); foreach ($aChunks as $iIndex => $aChunk) { $aChunks[$iIndex] = implode('', $aChunk); } return $aChunks; }