• PHP Video Tutorials

PHP - Function Ucwords



Syntax

ucwords(string)

Definition and Usage

It used to convert the first character of a string ton upper case in each string

Return Values

It returns the modified string

Parameters

Sr.No Parameters & Description
1

string

It is used to specifies which string to convert

Example

Try out the following example

<?php
   echo ucwords("tutorials point");
?>

This will produce following result −

Tutorials Point
php_function_reference.htm
Advertisements