Codice PHP:
foreach ($array as $key => $value){
        if (
$value==$elem){
            return 
true;
        }elseif(
is_array($value)){
            if(
$this->in_multiarray($elem$value))
                return 
true;
        }
    } 
Grazie, un'ultima domanda... a cosa corrispondono $key e $value?