您好我有一个数组,我想从postaladdress中删除此字符串 x000D 我该怎么办?我有一个数组,我想删除它。请协助。
[1] => Maatwebsite\Excel\Collections\CellCollection Object
(
[title:protected] =>
[items:protected] => Array
(
[email] => a22@bkonelearning.com
[firstname] => BK
[lastname] => Singh
[postaladdress] => C 201, Wembley Estate Apts,_x000D_
Rosewood City,_x000D_
(Opposite McDonald's),_x000D_
Sector 50
[city] => Gurgaon
[pin] => 122016
[state] => Haryana
[country] => India
[phoneno] => 91-9811525663
[street] =>
[mobileno] => 91-9811525663
[gender] => M
[occupation] =>
[industry] =>
[otherarea] => Sector 50
[othercity] =>
[isreceiveoffers] => 0
)
)
答案 0 :(得分:0)
在postaladdress中搜索子字符串“x000D”并将字符逐个移到左侧,直到5个字符。对所有出现的字符串“x000D”
执行此操作