app_path 函數(shù)返回 app 目錄的完整路徑。您亦可使用 app_path 函數(shù)來生成應(yīng)用目錄下特定文件的完整路徑:$path = app_path(); $path = app_path('Http/Controllers/Controller.php');
http://m.o2fo.com/laravel_8/laravel_8-n9pc3hkk.htmlconfig_path 函數(shù)返回 config 目錄的完整路徑。您亦可使用 config_path 函數(shù)來生成應(yīng)用配置目錄中的特定文件的完整路徑:$path = config_path(); $path = config_path('app.php');
http://m.o2fo.com/laravel_8/laravel_8-fol83hkm.htmldatabase_path 函數(shù)返回 database 目錄的完整路徑。您亦可使用 database_path 函數(shù)來生成數(shù)據(jù)庫目錄下特定文件的完整路徑:$path = database_path(); $path = database_path('factories/UserFactory.php');
http://m.o2fo.com/laravel_8/laravel_8-9w6s3hkn.htmle 函數(shù)在指定字符串上運行 PHP 的 htmlspecialchars 函數(shù)( double_encode 選項為 true ):echo e('<html>foo</html>'); // <html>foo</html>
http://m.o2fo.com/laravel_8/laravel_8-wgmb3hkv.htmlStr::padBoth 方法包裝了 PHP 的 str_pad 函數(shù),在指定字符串的兩側(cè)填充上另一字符串:use Illuminate\Support\Str; $padded = Str::padBoth('James', 10, '_'); // '__James___' $padded = Str::padBoth('James', 10); // ' James '
http://m.o2fo.com/laravel_8/laravel_8-5zo93hlg.htmlStr::padLeft 方法包裝了 PHP 的 str_pad 函數(shù),在指定字符串的左側(cè)填充上另一字符串:use Illuminate\Support\Str; $padded = Str::padLeft('James', 10, '-='); // '-=-=-James' $padded = Str::padLeft('James', 10); // ' James'
http://m.o2fo.com/laravel_8/laravel_8-day63hlh.htmlStr::padRight 方法包裝了 PHP 的 str_pad 函數(shù),在指定字符串的右側(cè)填充上另一字符串:use Illuminate\Support\Str; $padded = Str::padRight('James', 10, '-'); // 'James-----' $padded = Str::padRight('James', 10); // 'James '
http://m.o2fo.com/laravel_8/laravel_8-91yg3hli.htmlStr::random 函數(shù)生成一個指定長度的隨機字符串。這個函數(shù)用 PHP 的 random_bytes 函數(shù)use Illuminate\Support\Str; $random = Str::random(40);
http://m.o2fo.com/laravel_8/laravel_8-lebk3hlk.htmlStr::substr 方法與 php 自帶的字符串 stustr 截取函數(shù)相同,例如:use Illuminate\Support\Str; $converted = Str::substr('The Laravel Framework', 4, 7); // Laravel
http://m.o2fo.com/laravel_8/laravel_8-a3693hlt.htmlpadBoth 方法包裝了 PHP 的 str_pad 函數(shù),在指定字符串的兩側(cè)填充上另一字符串:use Illuminate\Support\Str; $padded = Str::of('James')->padBoth(10, '_'); // '__James___' $padded = Str::of('James')->padBoth(10); // ' James '
http://m.o2fo.com/laravel_8/laravel_8-bgx63hms.html抱歉,暫時沒有相關(guān)的微課
w3cschool 建議您:
抱歉,暫時沒有相關(guān)的視頻課程
w3cschool 建議您:
抱歉,暫時沒有相關(guān)的教程
w3cschool 建議您:
app_path 函數(shù)返回 app 目錄的完整路徑。您亦可使用 app_path 函數(shù)來生成應(yīng)用目錄下特定文件的完整路徑:$path = app_path(); $path = app_path('Http/Controllers/Controller.php');
http://m.o2fo.com/laravel_8/laravel_8-n9pc3hkk.htmlconfig_path 函數(shù)返回 config 目錄的完整路徑。您亦可使用 config_path 函數(shù)來生成應(yīng)用配置目錄中的特定文件的完整路徑:$path = config_path(); $path = config_path('app.php');
http://m.o2fo.com/laravel_8/laravel_8-fol83hkm.htmldatabase_path 函數(shù)返回 database 目錄的完整路徑。您亦可使用 database_path 函數(shù)來生成數(shù)據(jù)庫目錄下特定文件的完整路徑:$path = database_path(); $path = database_path('factories/UserFactory.php');
http://m.o2fo.com/laravel_8/laravel_8-9w6s3hkn.htmle 函數(shù)在指定字符串上運行 PHP 的 htmlspecialchars 函數(shù)( double_encode 選項為 true ):echo e('<html>foo</html>'); // <html>foo</html>
http://m.o2fo.com/laravel_8/laravel_8-wgmb3hkv.htmlStr::padBoth 方法包裝了 PHP 的 str_pad 函數(shù),在指定字符串的兩側(cè)填充上另一字符串:use Illuminate\Support\Str; $padded = Str::padBoth('James', 10, '_'); // '__James___' $padded = Str::padBoth('James', 10); // ' James '
http://m.o2fo.com/laravel_8/laravel_8-5zo93hlg.htmlStr::padLeft 方法包裝了 PHP 的 str_pad 函數(shù),在指定字符串的左側(cè)填充上另一字符串:use Illuminate\Support\Str; $padded = Str::padLeft('James', 10, '-='); // '-=-=-James' $padded = Str::padLeft('James', 10); // ' James'
http://m.o2fo.com/laravel_8/laravel_8-day63hlh.htmlStr::padRight 方法包裝了 PHP 的 str_pad 函數(shù),在指定字符串的右側(cè)填充上另一字符串:use Illuminate\Support\Str; $padded = Str::padRight('James', 10, '-'); // 'James-----' $padded = Str::padRight('James', 10); // 'James '
http://m.o2fo.com/laravel_8/laravel_8-91yg3hli.htmlStr::random 函數(shù)生成一個指定長度的隨機字符串。這個函數(shù)用 PHP 的 random_bytes 函數(shù)use Illuminate\Support\Str; $random = Str::random(40);
http://m.o2fo.com/laravel_8/laravel_8-lebk3hlk.htmlStr::substr 方法與 php 自帶的字符串 stustr 截取函數(shù)相同,例如:use Illuminate\Support\Str; $converted = Str::substr('The Laravel Framework', 4, 7); // Laravel
http://m.o2fo.com/laravel_8/laravel_8-a3693hlt.htmlpadBoth 方法包裝了 PHP 的 str_pad 函數(shù),在指定字符串的兩側(cè)填充上另一字符串:use Illuminate\Support\Str; $padded = Str::of('James')->padBoth(10, '_'); // '__James___' $padded = Str::of('James')->padBoth(10); // ' James '
http://m.o2fo.com/laravel_8/laravel_8-bgx63hms.html抱歉,暫時沒有相關(guān)的文章
w3cschool 建議您: