Forum Moderators: coopster
I want that "$x1,$y1,$x2,$y2" will be "0,0,0,100".
Something like: imageline($image,$a,$color);
Hope I explained my question clearly. :)
because the string in this var comes from a DB field.
Something like this?
imageline($image,$imgstr,$color);
function imageline($img,$coords,$bg) {
$coords = explode (',',$coords);
// etc.
}
You're of course better off not storing it as a string in the first place, but as individual tinyint fields or a relational table, this is one of many problems with that approach.