ucwords() helps to uppercase the first character of each word in a string.
<?php
$name = ‘rajesh varma’;
$name = ucwords($name);
?>
Output : Rajesh Varma
ucwords() helps to uppercase the first character of each word in a string.
Output : Rajesh Varma