PHP Classes

Extended Ini File

Recommend this page to a friend!

      Extended Ini File  >  All threads  >  Extended Ini File  >  (Un) Subscribe thread alerts  
Subject:Extended Ini File
Summary:Syntax Error
Messages:13
Author:Frankie P
Date:2015-10-18 14:16:28
 
  1 - 10   11 - 13  

  11. Re: Extended Ini File   Reply   Report abuse  
Picture of Christian Vigh Christian Vigh - 2015-10-18 21:03:49 - In reply to message 10 from Frankie P
oops sorry I forgot to mention that I uploaded the corrected version of file Inifile.class.php, so that you can download it.

More generally, switching from the traditional to the new array syntax is really easy ; consider the following example using the traditional syntax :

$a = array ( 1, 2, 3 ) ;

which initializes variable $a as an array with the values 1, 2 and 3.
Using the new syntax, it would become :

$a = [ 1, 2, 3 ] ;

So the conversion is simple :
- Remove the array keyword
- Replace parentheses with square brackets

The reverse conversion is also easy :
- Insert the "array" keyword before the opening bracket
- Replace square brackets with parentheses

  12. Re: Extended Ini File   Reply   Report abuse  
Picture of Frankie P Frankie P - 2015-10-18 21:40:35 - In reply to message 11 from Christian Vigh
Hi Christian,

Thanks for the info. I don't know that much about php so I really appreciate your help. This is a script that I think I can use.

The most recent download works perfectly.

Thanks again,
Frankie

  13. Re: Extended Ini File   Reply   Report abuse  
Picture of Christian Vigh Christian Vigh - 2015-10-18 23:46:53 - In reply to message 12 from Frankie P
Hi Frankie,

Glad to learn that !

I know that my documentation may not be so complete so if you have any question about this class, please feel free to contact me.

Christian.

 
  1 - 10   11 - 13