刪除字串開頭的空白符號或是其他設定的符號(character_mask
)。
ltrim ( string $str [, string $character_mask ] ) : string
Example:
$test1 = " hi, this is cyublog ";
print_r(ltrim($test1));
$test2 = "~~hi, this is cyublog~~ ";
print_r(ltrim($test2, "~"));
Output:
// ltrim($test1):
hi, this is cyublog
// ltrim($test2):
hi, this is cyublog~~
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