]> git.sesse.net Git - xml-template/blobdiff - php4/attribute-empty.php
Rename php -> php4.
[xml-template] / php4 / attribute-empty.php
diff --git a/php4/attribute-empty.php b/php4/attribute-empty.php
new file mode 100644 (file)
index 0000000..d461140
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+require('xml-template.php');
+
+# NULL values are ignored, but having one helps pointing out that
+# the array given is non-associative
+
+$doc = XML_Template_process_file('../xml/clone.xml', array(
+       'color' => 'blue',
+       '#things' => array(NULL)
+));
+print $doc->dump_mem();
+?>