Skip to content

Instantly share code, notes, and snippets.

@rogerhub
Created February 12, 2013 10:06
Show Gist options
  • Save rogerhub/4761345 to your computer and use it in GitHub Desktop.
Save rogerhub/4761345 to your computer and use it in GitHub Desktop.
Latest parsecss function
roger@melchior [~/Staging/main-theme]$ php5 -a
Interactive shell
php > include("colors.php");
php > print_r(DC_Colors::parsecss('rgba(32, 51, 41, 0.3)'));
Array
(
[0] => 32
[1] => 51
[2] => 41
[3] => 0.3
)
php > print_r(DC_Colors::parsecss('#dfdfdf'));
Array
(
[red] => 223
[green] => 223
[blue] => 223
)
php >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment