PHP Classes

sub arrays

Recommend this page to a friend!

      PHP INI Read and Write Class  >  All threads  >  sub arrays  >  (Un) Subscribe thread alerts  
Subject:sub arrays
Summary:not writing sub arrays
Messages:1
Author:Lieven Maus
Date:2017-01-15 13:14:11
 

  1. sub arrays   Reply   Report abuse  
Picture of Lieven Maus Lieven Maus - 2017-01-15 13:14:11
if you do something like

// Add new setting to section third_section
$ini->data['third_section']['phpversion']['old'] = 5.4;
$ini->data['third_section']['phpversion']['new'] = 5.5;

and save, then read again, you get:

// Add new setting to section third_section
$ini->data['third_section']['phpversion'][0] = 5.4;
$ini->data['third_section']['phpversion'][1] = 5.5;

can this behaviour be changed?