how to define by non-scalar vlaue.

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
zoftdev
Forum Newbie
Posts: 6
Joined: Tue Jun 02, 2009 11:01 pm

how to define by non-scalar vlaue.

Post by zoftdev »

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?
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: how to define by non-scalar vlaue.

Post by alex.barylski »

Code: Select all

$results = parse_ini_file('file.ini');
 
echo $results['db']['name']; // The database name

Code: Select all

file.csv:
 
[db]
 
  name = 'database'
  host = 'localhost'
Post Reply