Hi,
In our database we have middle initials in the Firstname field that we would like to strip off from the right. For example we have:
Jack A
Peter C
David G
and we would like to convert them to:
Jack
Peter
David
What type of string function would you use for that?
Also, we have Jr. mixed in the first name field too.
We have
Stephen Jr.
Bob Jr.
Brian Jr.
that we would like to convert to:
Stephen
Bob
Brian
Please show me how to write a PHP function to strip those unwanted characters off the right hand side of the Firstname field.
Thanks!