Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. preg_replace("/[^A-Za-z]/", '', $string);
  2.  
  3. if (!preg_match('/[^a-zA-Z]/', $string))) {
  4. // to do if it contains other than letters
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement