aesnnov opened this issue 8 years ago · 2 comments
dont work selector with minus.. phpQuery eq(-2) example: echo $html->find('div.bx_pagination_page > ul > li > a:eq(-2)')->html();
Fix it
if($k<0) { $this->elements = array( $this->elements[count($this->elements)+$k] ); } else { $this->elements = isset( $this->elements[$k] ) ? array( $this->elements[$k] ) : array(); }