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

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -