- array_slice: documentation ( source)
- preg_match_all: documentation ( source)
- var_export: documentation ( source)
<?php
$string = "2 x Brew Coffeee Panas: RM7.42 x Tongkat Ali Ais: RM8.6";
var_export(preg_match_all('~(\d+) x ([^:]+): RM(\d+\.\d)~', $string, $m) ? array_slice($m, 1) : []);