![]() |
Here is PHP Function to make frist word upper from a Sentence. |
See our Example.
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);
?>
php function |
Type
: |
Develop |
Category
: |
Web Tutorial |
Sub Category
: |
PHP String Tutorial |
Uploaded by
: |
Admin |