I retrieve with PHP a css file in my database.
So i have : $mycss = "SOME CSS SOME CSS SOME CSS"
In this $mycss, i can have :
div.coul01,.red,.coul01{
color:#663333;
}
div.coul02,.blue,.coul02{
color:#3366CC;
}
For this example, i need to retrive in PHP, for each instruction that begins with div. the second element, here "red" and "blue".
Do you have any ideas ? Thanks !