diff --git a/functions/var.xml b/functions/var.xml
index 0e13d55ddc..55456889c4 100644
--- a/functions/var.xml
+++ b/functions/var.xml
@@ -51,17 +51,17 @@ print $double_value_of_var; // prints 122.34343
Returns false if var is set and has a
non-empty or non-zero value; true otherwise.
-
-
+
+
$var = 0;
-if ( empty($var) ) { #evaluates true
+if (empty($var)) { #evaluates true
print '$var is either 0 or not at all set';
}
-if ( !isset($var) ) { // evaluates false
+if (!isset($var)) { // evaluates false
print 'The $var is not set at all';
}
-
-
+
+
Note that this is meaningless when used on anything which isn't a
@@ -94,12 +94,24 @@ if ( !isset($var) ) { // evaluates false
Possibles values for the returned string are:
- "integer"
- "double"
- "string"
- "array"
- "object"
- "unknown type"
+
+ "integer"
+
+
+ "double"
+
+
+ "string"
+
+
+ "array"
+
+
+ "object"
+
+
+ "unknown type"
+