I have a text: colname: green, rgb(255, 0 ,255); colname: white, rgb(0, 0, 0); colname: green, rgb(255, 0 ,255); colname: white, rgb(0, 0, 0);
how to parse names of the colors in $name, and rgb into $rgb variables?
must be:
$name[0]="green";
$rgb[0]="rgb(255, 0 ,255)";
$name[1]="white";
$rgb[1]="rgb(0, 0 ,0)";
...
2 replies to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









