1--TEST-- 2parse_ini_string() typed scanner mode 3--FILE-- 4<?php 5 6$contents = <<<EOS 7foo = 1 8bar = 1.3 9baz = null 10qux[] = false 11qux[] = off 12qux[] = something 13qux[] = "something else" 14EOS; 15 16var_dump(parse_ini_string($contents, false, INI_SCANNER_TYPED)); 17 18?> 19Done 20--EXPECT-- 21array(4) { 22 ["foo"]=> 23 int(1) 24 ["bar"]=> 25 float(1.3) 26 ["baz"]=> 27 NULL 28 ["qux"]=> 29 array(4) { 30 [0]=> 31 bool(false) 32 [1]=> 33 bool(false) 34 [2]=> 35 string(9) "something" 36 [3]=> 37 string(14) "something else" 38 } 39} 40Done 41