Created
August 15, 2017 08:10
-
-
Save machour/c6c423b8641cba8c3f68884731631392 to your computer and use it in GitHub Desktop.
Advanced form
This file contains 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
if ($query) { | |
$values = array_filter($values, function($var) use($query) { | |
return stripos($var, $query) !== false; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment