Here is a simple function I wrote to generate a username based on user’s first and last name.  This function will concatenate the first 5 characters of the first name to the first character of the last name. I used the explode function to split names with more than one word, and ran loops to [...]