The strtolower() function in PHP converts a string to lowercase.
The following figure shows a visual representation of the strtolower() function.
string strtolower(string)
As a parameter, the strtolower() function requires a string that is to be converted to lowercase.
The strtolower() function returns a string that is converted to lowercase.
The code below shows how the strtolower() function works in PHP.
<?php#stringecho("strtolower('EDUCATIVE'): ");echo (strtolower('EDUCATIVE'));echo("\n");#string with numberecho("strtolower('EDUCATIVE09'): ");echo (strtolower('EDUCATIVE09'));?>