- 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); });
echo (!empty($f));