PHP Character Classes – String Function

[ indicates the beginning of a character class.
- indicates a range inside a character class (unless it is first in the class).
^ indicates a negated character class (if found first).
] indicates the end of a character class.

Enjoyed this post? Share it!


Leave a comment

Your email address will not be published.