SimPCoRe
 
Home
Installation

Working with Nodes



Advanced

Tutorial - Working with Nodes

Removing Nodes

<?php 
$node = $session->getItem("pcr:root/users/jsmith")->toNode();

try {
  $node->remove();
} catch (Exception $e) {
  echo $e->getMessage(); //could not remove node
}
?>
 

SimPCoRe
Home | Tutorials and Installation Instructions | Documentation | Download | Contact Us | Google Group