ucfirst() function is used to capitalize the first character of a string.
<?php
$var_string = "hello, world!";
$result = ucfirst($var_string);
echo $result;
?>
Output:
Hello, world!
ucfirst() function is used to capitalize the first character of a string.
<?php
$var_string = "hello, world!";
$result = ucfirst($var_string);
echo $result;
?>
Output:
Hello, world!