PHPスクリプト
dokuwiki.fl8.jp掲載済
前後の空白を削除する。
string trim(string s) 文字列 s の前後の空白を削除します。
<?PHP $str=" こんにちは "; echo trim($str); ?>