Write a PHP script to convert first character of all the words uppercase

Introduction

PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I have used WampServer 2.2 for following example.

<?php
 
print(ucwords("techstudy - the complete debugging solution"))."\n";
 
?>

Result

Write a PHP script to convert first character of all the words uppercase
Write a PHP script to convert first character of all the words uppercase

Leave a Comment