Using this string:
" mary jones lives in santa cruz, california at 22 ocean drive."
I need to use the subst() function to print "santa cruz, california" making the first letter of each word capitalized.
Here is what i used:
echo substr ( " mary jones lives in santa cruz, california at 22...