PHP Classes

File: sample_output.txt

Recommend this page to a friend!
  Classes of Norbert Kiszka   PHP INI Config   sample_output.txt   Download  
File: sample_output.txt
Role: Sample output
Content type: text/plain
Description: Sample output on cli from test.php + test.ini
Class: PHP INI Config
Parse and get configuration values from INI files
Author: By
Last change: Better description
Date: 11 years ago
Size: 2,070 bytes
 

Contents

Class file image Download
-----------------------------------------TEST 1 (get some_var):----------------------------------------- array(8) { [0]=> int(1) [1]=> float(2.2) [2]=> bool(true) [3]=> bool(false) [4]=> NULL [5]=> string(11) "some string" [6]=> string(16) "protected string" [7]=> string(4) "true" } -----------------------------------------TEST 2 (use alias):----------------------------------------- array(8) { [0]=> int(1) [1]=> float(2.2) [2]=> bool(true) [3]=> bool(false) [4]=> NULL [5]=> string(11) "some string" [6]=> string(16) "protected string" [7]=> string(4) "true" } -----------------------------------------TEST 3 (get section):----------------------------------------- array(2) { ["some_var"]=> array(8) { [0]=> int(1) [1]=> float(2.2) [2]=> bool(true) [3]=> bool(false) [4]=> NULL [5]=> string(11) "some string" [6]=> string(16) "protected string" [7]=> string(4) "true" } ["other_var"]=> NULL } -----------------------------------------TEST 4 (get all):----------------------------------------- array(3) { ["section"]=> array(2) { ["subsection"]=> array(1) { ["other_subsection"]=> array(2) { ["some_var"]=> array(8) { [0]=> int(1) [1]=> float(2.2) [2]=> bool(true) [3]=> bool(false) [4]=> NULL [5]=> string(11) "some string" [6]=> string(16) "protected string" [7]=> string(4) "true" } ["other_var"]=> NULL } } ["second_section"]=> array(1) { ["subsec"]=> array(1) { ["xyz"]=> int(222) } } } ["empty section..."]=> array(0) { } ["other section"]=> array(1) { ["is this working?"]=> string(16) "it looks like..." } }