I have a string that contains a series of random words separated by commas:
worda,sample,wordb,another,extra,exampleb
This list will always be different.
What is the most efficient way to replace the last vowel of each word with a given $variable?
This may give you some ideas…
edited to use isset() instead of in_array()…