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

From: Date: Sun, 23 Jan 2011 17:09:34 +0000
Subject: note 84674 deleted from function.parse-ini-file by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-176155@lists.php.net to get a copy of this message
Note Submitter: another_user at example dot com ---- yarco dot w at gmail dot com: Constants can be concatenated with strings, but the string segments must be enclosed in quotes. Note to users, no joining symbol is used: +++ ; Start config.ini file here output = "bla bla bla "TEST_TXT" bla bla bla" ; end +++ <?php define("TEST_TXT","something something"); $the_array = parse_ini_file("/www/includes/config.ini"); echo $the_array["output"]; ?> outputs... bla bla bla something something bla bla bla

« previous php.notes (#176155) next »