mysql - PHP - Allowing string number and few symbols -


how allow preg_replace string, number , few symbols?

preg_replace("/[^0-9]/","",$data[0]); //only works fine numbers 

columns values are:

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 

preg_replace("#[^0-9a-z\(\),/\-\.'\" ]#i", "", $data[0]); 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -