Open nvirth opened 5 years ago
Executing these:
use Stringy\Stringy; $text = Stringy::create('/asd/qwe/'); $text = $text->trim(' \\/');
(A)
With mbstring extension enabled in php.ini => It works fine, result is 'asd/qwe'
mbstring
php.ini
'asd/qwe'
(B)
Without mbstring => It is buggy, result is '', and there is a php warning: preg_replace(): Unknown modifier ']'
''
preg_replace(): Unknown modifier ']'
Executing these:
(A)
With
mbstring
extension enabled inphp.ini
=> It works fine, result is
'asd/qwe'
(B)
Without
mbstring
=> It is buggy, result is''
, and there is a php warning:preg_replace(): Unknown modifier ']'