I have a webpage with a form that returns the remote username with the following:
$name = getenv(“REMOTE_USER”);
The username is always the last name preceded by the first initial and all in small letters. I am trying to reformat the $name to be more readable such as the following:
What I have is: $name = “jsmith”
What I want is: $name = “J. Smith”
This is probably pretty easy but I haven’t been able to come up with the correct string function or combination of functions to produce anything close to what I want. Any help would be appreciated.