I’m trying to parse an ini file with the parse_ini_file function.
Reserved characters are ?{}|&~![()^.
PHP arrays can have keys with a dollar sign, but why can’t this function generate an array with keys from an ini file that has $ characters?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Its perhaps because the use of $ is used to specify INI variable; thus causing a syntax error if not used in the context of a variable
Using
${...}as a value will look toFor example: