Right now I have a list of first and Last names, one name per row. Each name is separated by a space, I want to keep the Fist letter of the last name and erase the rest and place a period at the end.
i.e. Tom Smith -> Tom S.
Ron
Moderator: General Moderators
Christopher wrote:There are several ways to do this. Here is one way: Use strpos() to find the position of space and then substr() to truncate the string.
Users browsing this forum: No registered users and 1 guest