PHP VERSION: 8.2.18

changed_functions_parse_ini_file.php

<?php
// parse_ini_file() now allows you to specify data types
// NOTE: also available in PHP 5.6.1

$test parse_ini_file('parse_ini_file_test.ini'FALSEINI_SCANNER_TYPED);
var_dump($test);

Output


array(4) {
  ["test_int"]=>
  int(12345)
  ["test_float"]=>
  float(123.45)
  ["test_bool"]=>
  bool(true)
  ["test_string"]=>
  string(5) "12345"
}
SOURCE CODE