File: ExampleConfig.ini

Recommend this page to a friend!
  Classes of Stefan Kientzler  >  PHP Config Class  >  ExampleConfig.ini  >  Download  
File: ExampleConfig.ini
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Config Class
Read configuration from JSON, INI, XML and arrays
Author: By
Last change:
Date: 2 months ago
Size: 725 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...
Int_1		= 10
Int_2		= 20
Date_1		= 2021-01-12
Date_2		= 1613775600
DateTime_1	= 2021-02-23 13:47

; and another section
[Module_2]
String_1	= "Module2 string Parameter"
Int_1		= 30
Bool_1		= true
Bool_Error	= "invalid"



For more information send a message to info at phpclasses dot org.