📜  如何在 laravel 中修剪字符串 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:17.880000             🧑  作者: Mango

代码示例2
#at AppServiceProvider

Blade::directive('trim', function ($string) {
            $string = urldecode($string);
            $string = trim($string);
            return "";
        });

#And use on Blade template

@trim('Hello world !')