ThomasJSmart
Programmer
- Sep 16, 2002
- 634
Hi
Been trying to googlefind a php class to convert a CSS document into an array. I hav'nt been able to find anything though :/ anybody here know of an existing script, function or class to do this?
exaple:
body,div{
font-size:11px;
color:#000000;
}
.title{
font-size:20px;
color:#990000;
}
would become:
$classArr['body']['font-size'] = '11px';
$classArr['body']['color'] = '#000000';
$classArr['div']['font-size'] = '11px';
$classArr['div']['color'] = '#000000';
$classArr['.title']['font-size'] = '20px';
$classArr['.title']['color'] = '#990000';
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
Been trying to googlefind a php class to convert a CSS document into an array. I hav'nt been able to find anything though :/ anybody here know of an existing script, function or class to do this?
exaple:
body,div{
font-size:11px;
color:#000000;
}
.title{
font-size:20px;
color:#990000;
}
would become:
$classArr['body']['font-size'] = '11px';
$classArr['body']['color'] = '#000000';
$classArr['div']['font-size'] = '11px';
$classArr['div']['color'] = '#000000';
$classArr['.title']['font-size'] = '20px';
$classArr['.title']['color'] = '#990000';
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!