wip fix
This commit is contained in:
1 parent
9bcd4432c6
commit
6f92f9e1d5
1209 files changed
+220940
No files matched your search
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Mapper;
|
||||
|
||||
class SearchString
|
||||
{
|
||||
public static function explode($string)
|
||||
{
|
||||
$string = str_replace([',', '/', '&'], '', $string);
|
||||
|
||||
$tmp = preg_split('/\s+/', $string, -1, PREG_SPLIT_NO_EMPTY);
|
||||
|
||||
$return = [];
|
||||
foreach ($tmp as $value) {
|
||||
if (strlen($value) > 1) {
|
||||
$return[] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user