<?php
$hankaku_zenkaku = ' 全角半角 ';
$trim = trim(mb_convert_kana($hankaku_zenkaku, "s", 'UTF-8'));
echo "==={$trim}===";
#結果
===全角半角===
Go to list of users who liked
More than 3 years have passed since last update.
<?php
$hankaku_zenkaku = ' 全角半角 ';
$trim = trim(mb_convert_kana($hankaku_zenkaku, "s", 'UTF-8'));
echo "==={$trim}===";
#結果
===全角半角===
Register as a new user and use Qiita more conveniently
Go to list of users who liked