Dear ,
As define function accept only scalar value.
I have php project which use DB Constant
I have to move configuration to ini file because I want to share configuration with .net applicaiton.
How I do this?
how to define by non-scalar vlaue.
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: how to define by non-scalar vlaue.
Code: Select all
$results = parse_ini_file('file.ini');
echo $results['db']['name']; // The database nameCode: Select all
file.csv:
[db]
name = 'database'
host = 'localhost'