@ 2016-01-03T16:43:03Z <?php
var_dump(parse_ini_string("[section]
key = 1
key2 = -1
key3 = 1.2
key4 = -1.0
key5 = 0",
true, INI_SCANNER_TYPED));
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 5.6.8 - 5.6.28 , 7.0.0 - 7.0.20 , 7.1.0 - 7.1.25 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 array(1) {
["section"]=>
array(5) {
["key"]=>
int(1)
["key2"]=>
int(-1)
["key3"]=>
float(1.2)
["key4"]=>
string(4) "-1.0"
["key5"]=>
int(0)
}
}
Output for 5.5.24 - 5.5.35 Notice: Use of undefined constant INI_SCANNER_TYPED - assumed 'INI_SCANNER_TYPED' in /in/1hZQb on line 9
Warning: parse_ini_string() expects parameter 3 to be long, string given in /in/1hZQb on line 9
bool(false)
preferences:dark mode live preview
181.26 ms | 402 KiB | 197 Q