squiblo Posted July 24, 2009 Share Posted July 24, 2009 how do i make the username taken from the database always start with a capital letter? <?php echo $_SESSION['myusername']; ?> Link to comment https://forums.phpfreaks.com/topic/167312-solved-caps/ Share on other sites More sharing options...
kenrbnsn Posted July 24, 2009 Share Posted July 24, 2009 You could use a combination of strtolower and ucwords <?php echo ucwords(strtolower($_SESSION['myusername'])); ?> Ken Link to comment https://forums.phpfreaks.com/topic/167312-solved-caps/#findComment-882200 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.