squiblo Posted July 30, 2009 Share Posted July 30, 2009 how can i start this with a capital letter when echoed? echo "$username"; Link to comment https://forums.phpfreaks.com/topic/168087-solved-capital-letters/ 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. Link to comment https://forums.phpfreaks.com/topic/168087-solved-capital-letters/#findComment-886552 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" Link to comment https://forums.phpfreaks.com/topic/168087-solved-capital-letters/#findComment-886554 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> "; Link to comment https://forums.phpfreaks.com/topic/168087-solved-capital-letters/#findComment-886558 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.