"An" is used before a noun that starts with a vowel sound.
Since "apple" starts with a vowel sound ("a" sound), the indefinite article "an" is used instead of "a".
So, the correct sentence is: "Ali has an apple".
Get instant updates and alerts directly from our site.
Install this app on your device for quick access right from your home screen.