如何允许preg_replace
字符串,数字和几个符号?
preg_replace("/[^0-9]/","",$data[0]); //only works fine for numbers
列值为:
Technische achtergrond,0,1
Maritieme bediende,1,1
Transport rijbewijs C en CE,0,4
Commercieel bediende,1,5
Heftruck/Reachtruck(technisch operator),0,5
Boukhouding/Financieel,1,3
答案 0 :(得分:1)
preg_replace("#[^0-9a-z\(\),/\-\.'\" ]#i", "", $data[0]);