var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Reading config files
A lot of scripts have config files similar to something like this
variable = value #more comments
anotherVariable = "another value" #comments continued
Is there a way to read these files in php into php variables and values, other than walking through the file character by character with tons of if and for statements?
If you use an ini file format for your configuration, there's parse_ini_file()
I'm not aware of anything to read the specific format you posted but it doesn't look like it would be too difficult.