I have an array which I load as follows:
foreach ($_SESSION['cart'] as $item)
{
$pid = $item['itemId'];
$q = $item['qty'];
$orderedItems[]=array('itemId'=>$pid,'qty'=>$q);
}
I now need to create a variable that will store the results of my array in a string just like this:
"For itemA ==> 2 sample
For itemB ==> 1 sample"