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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -