Array

I like BMW

count function

6

Array using for loop


volvo
BMW
Toyota
Lamborghini
Thar
suzuki
Bajaj
Royal Enfield
KTM
Bulero

Array using foreach loop


mango
apple
orange
watermelon
banana
lemon

Sorting Array number


after sorting array element
1
2
3
4
5
6
7
8
9
10