Correct form of indefinite article (a, an) in PHP strings

Urswag

New Member
Is there an easy way to substitute a/an in a string to agree with the following word - much the same as the way 'S' works in Date format?e.g. \[code\]$apple = 'apple';$pear = 'pear';echo "This is a $apple, this is a $pear."--> This is an apple, this is a pear\[/code\]
 
Back
Top