Could anyone help me by telling me how I could get the prices out of the following variable by string manipulation:
POLYBAGHG1_5x8_1000-x-17.40-x-13.89-x-12.30
The prices are after each "-x-" delimeter
$string = "POLYBAGHG1_5x8_1000-x-17.40-x-13.89-x-12.30"; $info = explode("-x-",$string);
The item will be in $info[0] and prices in $info[1 - 3];