SitePoint Blogs : Dynamically Typed: configuration with arrays smells bad.

I have been guilty of this in the past, just because I didn’t know of another method. And it is indeed annoying to maintain. Harry provides two alternatives, including the parse_ini_file() function that I didn’t know about. It lets you put configuration stuff in a classic .ini file, and then parses it into variables for you, fast. Nice!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s