Articles → PHP → Ucfirst Function In PHP

Ucfirst Function In PHP






Purpose





Example


<!DOCTYPE html>
<html>
	<body>
		<?php
echo ucfirst("first letter of every line should be in CAPS");
?>
	</body>
</html>



Output


Picture showing the output of ucfirst function in php
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, October 8, 2020

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250