How can I make a search keyword appear in Capital letters in title? <title><?php echo $keywords; ?> something here.</title>[/code]
To change a string to capitals use $word = strtoupper($word); PHP: To get the referrer details: $referer = $_SERVER['HTTP_REFERER']; PHP: You can then use a regular expression to extract the search terms from the referrer details.
I think you want something like: <?php $title = "My title IS here"; $title = strtolower($title); $title = ucwords($title); ?> http://www.php.net/manual/en/function.ucwords.php If you do the strtolower() first, it will make sure your title always has only the first letter uc'd.