Copied!
  • property-read int $length
  • property-read string[] $outertext
  • property-read string[] $plaintext
  • extends \IteratorAggregate<int, SimpleHtmlDomInterface>
AbstractInterface
Methods
public abstract __get( $name)
 
  • param string $name
  • return array|null
public abstract __invoke( $selector, $idx = NULL)
 
  • param string $selector
  • param int $idx
  • return \SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>|\SimpleHtmlDomNodeInterface[]|null
public abstract __toString() : string
 
  • return string
public abstract count()
 

Get the number of items in this dom node.

  • return int
public abstract find(string $selector, $idx = NULL)
 

Find list of nodes with a CSS selector.

  • param string $selector
  • param int $idx
  • return \SimpleHtmlDomNode|\SimpleHtmlDomNode[]|null
public abstract findMulti(string $selector) : self
 

Find nodes with a CSS selector.

  • param string $selector
  • return \SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>
public abstract findMultiOrFalse(string $selector)
 

Find nodes with a CSS selector or false, if no element is found.

  • param string $selector
  • return false|\SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>
public abstract findOne(string $selector)
 

Find one node with a CSS selector.

  • param string $selector
  • return \SimpleHtmlDomNodeInterface
public abstract findOneOrFalse(string $selector)
 

Find one node with a CSS selector or false, if no element is found.

  • param string $selector
  • return false|\SimpleHtmlDomNodeInterface
public abstract IteratorAggregate::getIterator()
public abstract innerHtml() : array
 

Get html of elements.

  • return string[]
public abstract innertext()
 

alias for "$this->innerHtml()" (added for compatibly-reasons with v1.x)

  • return string[]
public abstract outertext()
 

alias for "$this->innerHtml()" (added for compatibly-reasons with v1.x)

  • return string[]
public abstract text() : array
 

Get plain text.

  • return string[]
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration