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  PHP code snippet - How to add custom meta field in custom post type?

Leave a Reply

Your email address will not be published. Required fields are marked *

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