Created
February 12, 2013 10:06
-
-
Save rogerhub/4761345 to your computer and use it in GitHub Desktop.
Latest parsecss function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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