Jump to content

Code first letter uppercase help


mark1million

Recommended Posts

  • Moderators

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...