diff --git a/Return-value.md b/Return-value.md new file mode 100644 index 0000000..13116ac --- /dev/null +++ b/Return-value.md @@ -0,0 +1,34 @@ +While doing a select or any operations into XMLDB, you'll have 3 possible values in return: + +## Array + +A node can be figured as an array in this format: + +``` +Array => ('name' => 'item'), + ('attributes' => array('id'=>'1', + 'name'=>'test')), + ('childs' => array('visibility'=>'true', + 'x'=>'32')) +``` + +This array is equal to + +```xml + + true + 32 + +``` + +## Node + +It's actually a "DOMNode": http://www.php.net/manual/fr/class.domnode.php + +It's mainly use for [Data manipulation](Data-Manipulation) + +We usually use Array for display or manual operation + +## Count + +Not really of format, but operation with this `$format` will return an Integer. \ No newline at end of file