In Linux, .DEB files have ‘control’ text files that are arranged as follows:
Name: Value
Size: Value
Information: Mutliline
value
What is the best way to get the control file into a PHP array resembling:
Array ( "Name" => Value, "Size" => Value, "Information" => Value);
keeping in mind that the values can be multi-line and include the “:” separator.
Thanks!
Implemented as described here: http://www.debian.org/doc/debian-policy/ch-controlfields.html
If I made mistakes corrections are welcomed!