blob转string 存详细商品或者其他信息的时候 mysql 字段设计为 blob类型 存数据库时进行转换: 函数 :htmlspecialchars($data) 取出来的时候要转义 函数 :htmlspecialchars_decode()