I'm writting PHP tool to edit lighttpd.conf (Lighttpd webserver).
lighttpd.conf style:
variable = value
variable = 1
variable = "value space"
I can work arround with style above but lighttpd.conf also have array style with multi-level array:
variable = ("key" => (
"multi-key" => (
"subkeya" => "value",
"subkeyb" => "value")
)
)
How can I parsing and convert it to array in php ?
Like:
$variable[variable] = "value";
$variable[variable] = array("key" => array("subkey" => "value");