Created
May 13, 2017 18:25
-
-
Save asterion/4918ee403006f684f7b28adae5a408cc to your computer and use it in GitHub Desktop.
filter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$themes = array('wp-theme','wp-theme-2', 'wp-theme-3', 'font-awesome', 'icons', 'media-wp'); | |
$themesFilter = array_filter($themes, function($theme){ | |
return preg_match('/^wp/', $theme); | |
}); | |
print_r($themesFilter); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment