php
Capitalize text PHP
ucfirst() method can be used to capitalize text in PHP
<?php
$txtStr = "hello world";
echo ucfirst($txtStr);
//prints - Hello world
?>
Output
Hello world
Was this helpful?
Similar Posts
ucfirst() method can be used to capitalize text in PHP
<?php
$txtStr = "hello world";
echo ucfirst($txtStr);
//prints - Hello world
?>