トリミング

PHP

PHP 文字列トリミング

<?php //文字列の最後の改行を取り除く // 例として 文字列 + 改行 $temp = "abcdefg\n"; $temp = rtrim($temp); // 結果 $tempの内容は "...