/* search $array of strings for $search_for_this
 * (case-in-sensitive and will also find "this" "in-a-longer-ThIs-string")
 * remove element if found */
function ArraySearchDelete($array, $search_for_this)
{
    $result = array();
    foreach($array as $element)
    {
        if(!stristr($element, $search_for_this))
        {
            array_push($result,$element);
        }
    }
    
    return $result;
}
admin