note 66513 deleted from function.dom-domxpath-construct by bjori

From: Date: Wed, 24 May 2006 21:12:54 +0000
Subject: note 66513 deleted from function.dom-domxpath-construct by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-111963@lists.php.net to get a copy of this message
Note Submitter: dan dot ostrowski at gmail dot com Reason: integrated ---- To the person who posted "It is not clear what the DOMXPath::__constructor() method returns." ... please take a look at what you just posted. You check the result of the FUNCTION loadXML() but then the CONSTRUCTOR of the DOMXPath Object. Constructors return references to the objects they've created (in a nutshell) whereas the loadXML() FUNCTION returns BOOLEAN. Note how you, correctly, did not try to evaluate new DOMDocument? Why would you try to evaluate DOMXPath for boolean?

« previous php.notes (#111963) next »