Jump to content

ucfirst help


RolloDJ

Recommended Posts

Hey there, im trying to ucfirst the text that is displayed on my website cms, the users that sign up register there username in lowercase, i need help with making the first letter be uppercase for example from rollo to Rollo, when displayed on the cms not in the database

 

the line of code that is used to showed on the cms template is

 

$this->setParams('username', $users->getInfo($_SESSION['user']['id'], 'username'));

 

but the problem is i have tried using ucfirst but I cannot succeed, any help please?

Link to comment
https://forums.phpfreaks.com/topic/261318-ucfirst-help/
Share on other sites

Just a guess because we really have no idea how your code works:

 

$this->setParams('username', ucfirst($users->getInfo($_SESSION['user']['id'], 'username')));

 

ps: The idea of changing the format of a users name is not something I would recommend doing.

 

Doesn't work, i'm guessing I cannot change it there, is there a reason why it isn't recommended?

 

think I will have to change it so when registered it has a display username as well as a log in?

Link to comment
https://forums.phpfreaks.com/topic/261318-ucfirst-help/#findComment-1339078
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.