squiblo Posted July 30, 2009 Share Posted July 30, 2009 how can i start this with a capital letter when echoed? echo "$username"; Quote Link to comment Share on other sites More sharing options...
Philip Posted July 30, 2009 Share Posted July 30, 2009 ucfirst for the first letter in the string, or ucwords for the first letter in each word. Quote Link to comment Share on other sites More sharing options...
squiblo Posted July 30, 2009 Author Share Posted July 30, 2009 //get data $state = $runrows['state']; $url = $runrows['url']; $username = $runrows['username']; echo " <b>$username</b><br> $state<br> <a href='$url'>View Profile</a><br> "; when i try it just echoes the whole thing out instead of just the username using "ucwords(strtolower" Quote Link to comment Share on other sites More sharing options...
Philip Posted July 30, 2009 Share Posted July 30, 2009 //get data $state = $runrows['state']; $url = $runrows['url']; $username = ucwords($runrows['username']); echo " <b>$username</b><br> $state<br> <a href='$url'>View Profile</a><br> "; 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.