IntlChar tolower() function in PHP


The IntlChar tolower() function converts the character into Unicode character lowercase.

Syntax

IntlChar::tolower (val)

Parameters

  • val − An integer or character encoded as a UTF-8 string.

Return

The IntlChar tolower() function returns the converted lowercas character. If the character is already in lowercase, the same character is returned.

Example

The following is an example −

<?php
   var_dump(IntlChar::tolower("k"));
   echo "<br>";
   var_dump(IntlChar::tolower("89"));
   echo "<br>";
   var_dump(IntlChar::tolower("M"));
   echo "<br>";
   var_dump(IntlChar::tolower("jkl"));
?>

Output

The following is the output −

string(1) "J"
NULL
string(1) "J"
NULL

karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know

Updated on: 31-Dec-2019

26 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements