PHP文字列trim

先頭と末尾の空白(または指定した文字)を削除します。

構文

trim(string $string, string $characters = ' \n\r\t\v\x00'): string