public function in_multiarray($needle, $haystack)
    {
        foreach ($haystack as $value) {
            if (is_array($value)) {
                if ($this->in_multiarray($needle, $value)) {
                    return true;
                }
            } else {
                if ($value == $needle) {
                    return true;
                }
            }
        }
        return false;
    }
public function in_multiarray($needle, $haystack)
    {
        foreach ($haystack as $value) {
            if (is_array($value)) {
                if ($this->in_multiarray($needle, $value)) {
                    return true;
                }
            } else {
                if ($value == $needle) {
                    return true;
                }
            }
        }
        return false;
    }
public function in_multiarray ( $ needle , $ haystack ) { foreach ( $ haystack as $ value ) { if ( is_array ( $ value ) ) { if ( $ this -> in_multiarray ( $ needle , $ value ) ) { return true ; } } else { if ( $ value == $ needle ) { return true ; } } } return false ; }
implements a recursive in_array function
@param mixed $needle
@param array $haystack
@author Christian Bülter <buelter@kennziffer.com>
@since 11.07.12
@return bool
implements a recursive in_array function