Jump to content

[SOLVED] Capitalize First Letter


konetch

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/152620-solved-capitalize-first-letter/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.