• php怎么只保留英文字母

    在php中,可用preg_match_all()配合正则表达式来过滤字符串,只保留英文字母;语法“preg_match_all("[a-zA-Z]u","$str",$arr)”,字母会存入数组中

    2022-5-18
    24 0 0