PHP Classes

File: ExampleConfig.xml

Recommend this page to a friend!
  Classes of Stefan Kientzler   PHP Config Class from Files in JSON, INI, XML, YAML, NEON or Arrays   ExampleConfig.xml   Download  
File: ExampleConfig.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Config Class from Files in JSON, INI, XML, YAML, NEON or Arrays
Read configuration from multiple file formats
Author: By
Last change: empty value added for testing
Date: 2 years ago
Size: 927 bytes
 

Contents

Class file image Download
<!-- the name of the root element can be chosen arbitrarily ... --> <config> <BaseString_1>Base String Parameter</BaseString_1> <Module_1> <String_1>First string Parameter</String_1> <String_2>Second string Parameter</String_2> <EmptyString></EmptyString> <Int_1>10</Int_1> <Int_2>20</Int_2> <Date_1>2021-01-12</Date_1> <Date_2>1613775600</Date_2> <DateTime_1>2021-02-23 13:47</DateTime_1> </Module_1> <Module_2> <String_1>Module2 string Parameter</String_1> <Int_1>30</Int_1> <Bool_1>off</Bool_1> <Bool_Error>invalid</Bool_Error> </Module_2> <!-- to define an zero base indexed array insert multiple elements with the same name... --> <IndexedArray>First Element</IndexedArray> <IndexedArray>Second Element</IndexedArray> <IndexedArray>Third Element</IndexedArray> <AssocArray> <First>Element 1</First> <Second>Element 2</Second> <Third>Element 3</Third> </AssocArray> </config>