1.使用trim去头去尾的空白
<?php echo trim(' a s df '); ?>
2.使用php函数 :str_replace()头尾跟中间中文跟英文数字都空白,测试完全都集中删除所有的空白
<?php $str = ' e e r rrewrwrrw erwrr rewr rew'; echo str_replace(' ','',$str);?>
1.使用trim去头去尾的空白
<?php echo trim(' a s df '); ?>
2.使用php函数 :str_replace()头尾跟中间中文跟英文数字都空白,测试完全都集中删除所有的空白
<?php $str = ' e e r rrewrwrrw erwrr rewr rew'; echo str_replace(' ','',$str);?>