<?php $text = ' Apple,20,red Pear,10,yellow '; $arr = array_filter(array_map('trim', $text)); print_r($arr);
You have javascript disabled. You will not be able to edit any code.