Documentation
count
usage
Sushee_shell->count( string xpath )
paramètres
xpath: a path to the elements you want to count
exemples
include_once('../sushee/common.php');
$shell = new Sushee_shell();
$shell->addCommand(
'<SEARCH name="news">
<MEDIA mediatype="News"/>
</SEARCH>'
);
$shell->execute();
$nb_news = $shell->count("/RESPONSE/RESULTS[@name='news']/MEDIA");