PHP Classes

File: SKien/Test/Config/testdata/TestConfig.ini

Recommend this page to a friend!
  Classes of Stefan Kientzler   PHP Config Class from Files in JSON, INI, XML, YAML, NEON or Arrays   SKien/Test/Config/testdata/TestConfig.ini   Download  
File: SKien/Test/Config/testdata/TestConfig.ini
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: added YAML and NEON support
Date: 3 years ago
Size: 1,075 bytes
 

Contents

Class file image Download
BaseString_1 = "Base String Parameter" ; zero based indexed Array IndexedArray[] = "First Element" IndexedArray[] = "Second Element" IndexedArray[] = "Third Element" ; associative Arrays AssocArray["First"] = "Element 1" AssocArray["Second"] = "Element 2" AssocArray["Third"] = "Element 3" ; begin section 'Module_1' ... section is active until next section begin or end of file [Module_1] String_1 = 'First,; string Parameter' ; xxxx String_2 = "Second string; Parameter" ; some comment... EmptyString = ; some comment... Int_1 = 10 Int_2 = 20 Float_1 = 12.34 Date_1 = 2021-01-12 Date_2 = 1613775600 Date_3 = 14.03.2012 Date_Invalid= 2021-0112 DateTime_1 = 2021-01-12 13:47 DateTime_2 = 1613796813 DateTime_3 = 14.03.2012 13:47 DateTime_Invalid= 2021-0112 345 ; and another section [Module_2] True_1 = true True_2 = TRUE True_3 = on True_4 = On True_5 = yes True_6 = Yes True_7 = YES True_8 = 1 False_1 = false False_2 = False False_3 = off False_4 = OFF False_5 = no False_6 = No False_7 = none False_8 = 0 Bool_Invalid= invalid