From d6f245b26ac37935699670a9e6e8c0545c67dd6c Mon Sep 17 00:00:00 2001 From: Shikiryu Date: Mon, 21 Oct 2019 09:42:15 +0200 Subject: [PATCH] --- Return-value.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Return-value.md 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