將字串的第一個字元為字母的話,則將第一個字元轉為 小寫 並返回該字串。
lcfirst ( string $str ) : string
Example:
$test1 = "Apple and Banana";
print_r(lcfirst($test1));
$test2 = "2. Apple and Banana";
print_r(lcfirst($test2));
Output:
// lcfirst($test1):
apple and Banana
// lcfirst($test2):
2. Apple and Banana
Laravel8+Vue3+Bootstrap5實作TODO List ep09:安裝bootstrap5並美化todo list畫面
Laravel8+Vue3+Bootstrap5實作TODO List ep07:安裝vue3跟基本設定
Laravel8+Vue3+Bootstrap5實作TODO List ep08:用vue重新製作todo list畫面
Laravel8+Vue3+Bootstrap5實作TODO List ep06:初步認識Web Route
Laravel8+Vue3+Bootstrap5實作TODO List ep05:製作新增、更新、刪除待辦事項的API