I have an array that has 7 types of fruits:
$fruits = array(
"lemon",
"orange",
"banana",
"apple",
"cherry",
"apricot",
"Blueberry"
);
I do not know how to print the data so that the result is as follows:
<A>
Apple, Apricot
<B>
Banana
<C>
Cherry
<L>
Lemon
<O>
Orange
I'm sorry the question can be a little tricky. But please kindly help if you could.
source
share