Copied!
  • property-read int $length

    The list items count.

  • property-read string [] $outertext

    Get dom node's outer html.

  • property-read string [] $plaintext

    Get dom node's plain text.

  • extends \IteratorAggregate<int, SimpleXmlDomInterface>
Abstract Interface
  • Implements
    IteratorAggregate
    Stringable
    Traversable
Methods
public abstract __get ( $name )
 
  • param string $name
  • return array | null
public abstract __invoke ( $selector , $idx = 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 or xPath selector.

public abstract findMulti ( string $selector ) : self
 

Find nodes with a CSS or xPath selector.

public abstract findMultiOrFalse ( string $selector )
 

Find nodes with a CSS or xPath selector.

public abstract findOne ( string $selector )
 

Find one node with a CSS or xPath selector.

public abstract findOneOrFalse ( string $selector )
 

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

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 []
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration