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']; ?> Quote Link to comment 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 Quote Link to comment 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.