Most efficient way to get last initial?

persanul

New Member
I'm working on a custom forum. It will use an email and password to log in, and the forum will display your first name and last initial. The database stores their first name and full last name.What would be the easiest way to make it abbreviate the last name to an initial?It currently uses this to display full name:\[code\]$name = $row['user_firstname'] . " " . $row['user_lastname'];\[/code\]Thanks!
 
Back
Top