note 43728 deleted from ref.simplexml by didou

From: Date: Tue, 16 Jan 2007 00:44:15 +0000
Subject: note 43728 deleted from ref.simplexml by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-121761@lists.php.net to get a copy of this message
Note Submitter: rishad at kaluma dot com ---- To test whether a child node exists I used the following code: <?php function child_exists($xml, $childpath) { $result = $xml->xpath($childpath); if (count($result)) { return true; } else { return false; } } ?>

« previous php.notes (#121761) next »