<?php $str = '"20x9,999",24x65,40x5'; $one = []; $two = []; foreach (str_getcsv($str) as $set) { [$one[], $two[]] = explode('x', $set); } var_dump($one, $two);
You have javascript disabled. You will not be able to edit any code.