Skip to content

PHP code snippet – How to filter the all special characters in cake from an array?

cleaned = preg_replace("/[^{$allow}a-zA-Z0-9]/", '', $string);
See also  How to convert string to char array in Java?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.