我正试图用一个空格替换多个空格.当我使用时ereg_replace,我收到一个关于它被弃用的错误.
ereg_replace
ereg_replace("[ \t\n\r]+", " ", $string);
是否有相同的替代品.我需要用一个" "空格替换多个空格和多个nbsp空格.
" "
nbsp
php regex formatting string-formatting ereg-replace
ereg-replace ×1
formatting ×1
php ×1
regex ×1
string-formatting ×1