<?php $str="apple,mango,banana"; $lst = explode(",", $str); /*print the array*/ foreach($lst as $item) { echo "$lst "; }
You have javascript disabled. You will not be able to edit any code.