I want to check how many instances of the letter a appears in a certain string.
a
What is the function for this? I need it to return an integer value.
you can refer to PHP string functions manual to find any function you need, http://php.net/strings