Skip to content

Instantly share code, notes, and snippets.

@SuprDewd
Created August 31, 2010 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SuprDewd/559823 to your computer and use it in GitHub Desktop.
Save SuprDewd/559823 to your computer and use it in GitHub Desktop.
.epicClass { background: pink; }
<?php
// Output contents of all css files.
foreach(scandir(dirname(__FILE__)) as $f)
{
if (substr($f, strlen($f) - 4) == '.css' && is_file($f))
{
// do something with css file like:
//echo file_get_contents($f);
echo $f . "\n";
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment