Laravel 8 Str::title()

2021-07-19 10:29 更新

Str::title 方法是把指定的字符串,每個(gè)單詞首字母大寫,例如:

use Illuminate\Support\Str;

$converted = Str::title('a nice title uses the correct case');

// A Nice Title Uses The Correct Case 
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)