I have a string containing a person's first and last name such as John Doe
. I would like to convert this string to John D.
Normally, I would just use substring(0,1)
on the last name variable, but how can I achieve this when the first and last name are one string with a space in between?
Aucun commentaire:
Enregistrer un commentaire