Horje
How to create first word Upper/Big from a sentence

Here is PHP Function to make frist word upper from a Sentence.


Create first word Big from a Sentence PHP

See our Example.

index.php
Example: PHP
<?php
function uc_first_word ($string)
{
   $s = explode(' ', $string);   
   $s[0] = strtoupper($s[0]);   
   $s = implode(' ', $s);
   return $s;
}

$title = 'Wwe Raw 2025';

echo uc_first_word($title);
?>

Output should be:





php function

Type:
Develop
Category:
Web Tutorial
Sub Category:
PHP String Tutorial
Uploaded by:
Admin