I have text in a $abc variable.
Now I want to check that text can hold only characters (a-z, A-Z, 0-9). If they have any character except those, then “a output” should be returned.
How can I do that?
example: $abc = "this is @ text"; // no match
Something like:
With regards to Jame C’s comment, here is the inverted case: