konsu,
thank you!
yes - split - of course - I just somehow forgot that it exists and how to use it - I must have overheated. Thank you for revitalizing!
Here's what worked for me in case anyone is interested:
$another_array = array("142"=>"blue","145"=>"red","144"=>"green");
$one_more_array = array("25"=>"Michael","14"=>"Sabrina","1"=>"Jane");
$string = "142=1::144=25::14=125";
$key_val_arr = explode("::",$string);
foreach ( $ans_val_arr as $values ){
$pieces = explode("=", $values);
$final .= $another_array[$pieces[0]]." - ".$one_more_array[$pieces[1]].", ";
}
echo $final;
// prints out
// blue - Jane, green - Michael, red - Sabrina,