Documentation
reset
usage
Sushee_Shell->reset()
exemples
include_once('../sushee/common.php');
$shell = new Sushee_Shell();
$shell->addCommand(
'<GET>
<CONTACT ID="1857"/>
</GET>'
);
$shell->execute();
$firstname = $shell->valueOf('/RESPONSE/RESULTS/CONTACT/INFO/FIRSTNAME');
echo $firstname; // prints "Boris"
$shell->reset();
$shell->addCommand(
'<GET>
<CONTACT ID="2"/>
</GET>'
);
$shell->execute();
$firstname = $shell->valueOf('/RESPONSE/RESULTS/CONTACT/INFO/FIRSTNAME');
echo $firstname; // prints "François"