My current code is as follows
foreach($flowers as $flower){
echo "Order by: " . $flower->cust_name . "with item: " . $flower->item;
// code result above
// Order by: Anna Witck with item Lily
// Order by: George Maxwel with item Rose
// Order by: Catherine Giin with item Aster
// and so on..
}
But I want it to update it so that each line result have different (two) variable like as follows.
$anna_cust = $flower->cust_name; // result: Anna Witck
$anna_item = $flower->item; // result: Lily
$george_cust = $flower->cust_name; // result: George Maxwel
$george_item = $flower->item; // result: Rose
$catherine_cust = $flower->cust_name; // result: Catherine Giin
$catherine_item = $flower->item; // result: Aster
$flowers? An array ofFlowerobjects?