function find_contains_v1($html, $selector, $index=-1) {

    $ret = array();

    foreach ($html->find($selector) as $e) {

            $ret[] = $e;

    }



    if ($index<0) return $ret;

    return (isset($ret[$index])) ? $ret[$index] : null;

}