function assemble_css($css) {
// Initialize the output.
$output = '';
// Iterate through all the statements
foreach ($css as $statement) {
// Add the keys.
$output .=
implode(",\n",
$statement['keys']);
// And, the opening curly brace.
$output .= " {\n";
// Iterate through all the statements.
foreach ($statements as $key => $value) {
$output .= " " . $key . ": " . $value . "\n";
}
// Add the closing curly brace.
$output .= "}\n";
}
// Return the output.
return $output;
}
function compress_css($css) {
// Initialize the output.
$output = '';
// Iterate through all the statements
foreach ($css as $statement) {
// Add the keys.
$output .=
implode(",",
$statement['keys']);
// And, the opening curly brace.
$output .= "{";
// Iterate through all the statements.
foreach ($statements as $key => $value) {
$output .= $key . ":" . $value;
}
// Add the closing curly brace.
$output .= "}";
}
// Return the output.
return $output;
}