input('reValue'); if (!$code){ return ''; } $data=\DB::table('banzui') ->where('code',$code) ->get(); foreach ($data as $k=>$v){ $data[$k]['mobile']=mb_substr($v->mobile,0,3).'****'.mb_substr($v->mobile,-4); $data[$k]['m_mobile']=mb_substr($v->mobile,0,3).'****'.mb_substr($v->mobile,-4); } } }