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