I searched for a lot of preg_matches
but they all didn't work. I looked a lot in my code but can't find a problem there.
So I decided to make a simple preg_match to see if my code worked or if it was the preg_match that made the problem.
So if im right the code preg_match("[s-0-9+]{6,12]", $tel)
should be true if tel
was 0612345678
or 06-12345678
or +31 123456
right? cause that doesn't seem to work. Is it my preg_match?
If not I'll change my code and if that doesn't work I will make another question were I put my php code in.
edit
got the working code with help in the comments now preg_match("/[\s0-9]{6,12}/", $tel)