Moderators mark1million Posted October 27, 2011 Moderators Report Share Posted October 27, 2011 I have this code being used on my system and I want to ensure this happens, User input is, john doe acb1234 Convert to, John Doe ABC1234 So first letter in the names are upper case, airline code is capitals. I have been looking at, I already have the variable $pilot_id_full outputting correctly. $pilot_id_full = $fname.' '.$lname.' '.$code; So i was thinking, $pilot_id_full = ucfirst ($fname.' '.$lname).' '.$code; Not tested by the way just is why im after a bit of guidance of the best way to achieve this. Quote Link to comment Share on other sites More sharing options...
Tom Posted October 27, 2011 Report Share Posted October 27, 2011 $pilot_id_full = ucfirst($fname).' '.ucfirst($lname).' '.$code; Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted October 27, 2011 Author Moderators Report Share Posted October 27, 2011 Cheers Tom your a star Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.