- var_dump: documentation ( source)
- array_filter: documentation ( source)
- stripos: documentation ( source)
- strtolower: documentation ( source)
<?php
$a = ['asdf','foo','bar'];
$f = array_filter($a, function ($el) { return (stripos($el, strtolower('FOO')) !== false); });
var_dump($f);