RolloDJ Posted April 20, 2012 Share Posted April 20, 2012 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? Quote Link to comment https://forums.phpfreaks.com/topic/261318-ucfirst-help/ Share on other sites More sharing options...
trq Posted April 20, 2012 Share Posted April 20, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/261318-ucfirst-help/#findComment-1339074 Share on other sites More sharing options...
RolloDJ Posted April 20, 2012 Author Share Posted April 20, 2012 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? Quote Link to comment https://forums.phpfreaks.com/topic/261318-ucfirst-help/#findComment-1339078 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.