DomQuery::__call();

Magic method used to throw a catchable exception when calling a non-existant method.

 try
 {
     $DomQuery = new DomQuery;
     $DomQuery->i_do_not_exist();
 }
 catch(DOMException $Exception)
 {
     echo $Exception->getMessage();
 }

Definition:

public function __call($method, $arguments)

Parameters:

Name Type Description
$method String The name of the method being called.
$arguments Array Any arguments passed through to this method.

Recent Discussions

No discussions yet!