|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-03-26 14:44 UTC] felipe@php.net
[2009-04-21 03:12 UTC] fa@php.net
[2020-02-07 06:10 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 14:00:01 2025 UTC |
Description: ------------ When we use parse_ini_file function, we can't define a array with name "on" But we can't find any reference of an reserver-keyword "on" in documentation Reproduce code: --------------- myArray[] = "php is good" myArray[] = "asp is not good" on[] = "linux" on[] = "macos X" print_r(parse_ini_file('file.ini')); Expected result: ---------------- array( [myArray] => Array ( [0] => "php is good" [1] => "asp is not good" ) [on] => Array ( [0] => "linux" [1] => "macos X" ) ) Actual result: -------------- Warning: Error parsing file.ini on line 41 in index.php on line 2