File manager - Edit - /var/www/payraty/helpdesk/vendor/teamtnt/tntsearch/src/Support/ProductTokenizer.php
Back
<?php namespace TeamTNT\TNTSearch\Support; class ProductTokenizer extends AbstractTokenizer implements TokenizerInterface { static protected $pattern = '/[\s,\.]+/'; public function tokenize($text, $stopwords = []) { $text = mb_strtolower($text); $split = preg_split($this->getPattern(), $text, -1, PREG_SPLIT_NO_EMPTY); return array_diff($split, $stopwords); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.49 |
proxy
|
phpinfo
|
Settings