konetch Posted April 5, 2009 Share Posted April 5, 2009 I want to capittalize the first letter of my title. This is the script I'm using... <?php $page = end(explode('/' , $_SERVER['SCRIPT_NAME'])); $title = str_replace('.php', '', $page); echo '<title>KonetchReport | ' . $title . '</title>'; ?> How would you capitalize the first letter of the '$title'? Thanks Quote Link to comment Share on other sites More sharing options...
sasa Posted April 5, 2009 Share Posted April 5, 2009 look functions ucfirst() ucwords() Quote Link to comment Share on other sites More sharing options...
konetch Posted April 5, 2009 Author Share Posted April 5, 2009 Thanks 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.