Articles → PHP → Ucwords Function In PHP

Ucwords Function In PHP






Purpose





Example


<!DOCTYPE html>
<html>
	<body>
		<?php
echo ucwords("all the first character of the word should be in caps");
?>
	</body>
</html>



Output


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


Posted By  -  Karan Gupta
 
Posted On  -  Friday, October 9, 2020

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250