note 92982 deleted from function.parse-ini-file by danbrown

From: Date: Tue, 18 Aug 2009 17:22:00 +0000
Subject: note 92982 deleted from function.parse-ini-file by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-159605@lists.php.net to get a copy of this message
Note Submitter: yarco dot w at gmail dot com ---- It is very interesting accoding to the last 2 notes. For example(When you use [] in value, you would get): yarco@coto ~ $ cat test.ini [global] key = 'obj->arrays[0]' yarco@coto ~ $ php -a Interactive shell php > print_r(parse_ini_file('test.ini', true)); Array ( [global] => Array ( [key] => 'obj->arrays ) [0] => Array ( ) ) But you could use double quotes to avoid this to make really what you want. So it would break our mind. Normal thinking, the single quotes would keep everything in its original and double quotes would escape them...

« previous php.notes (#159605) next »