• PHP Video Tutorials

PHP - Function Ucfirst



Syntax

ucfirst(string)

Definition and Usage

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

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 ucfirst("tutorialspoint");
?>

This will produce following result −

Tutorialspoint
php_function_reference.htm
Advertisements