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