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.