PHP - Ucfirst Help
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 Code: [Select] $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? Similar TutorialsHi, gday, how can I use the ucfirst variable on the posted variable after to form has been submitted to welcome my member? "<p>Welcome: ucfirst{$_SESSION['first_name']};" This is not working. Should I use it in the form instead? Hello, All the names in database are uppercase. Would like to run string formating functions before displaying them. Code: [Select] $name = ucfirst(strtolower($results[$i]['name'])); It turns everything nicely into lowercase but doesn't capitalize the first letter. Why could that be? Best regards, laanes |