Home

See the related posts

Mysql server version using php function – mysql_get_server_info()    Text file prompt download or force download using php    Number of lines in a file using php    Check Image exists or Not Using php and GD    PHP Warning: Call-time pass-by-reference has been deprecated   

Make a string lowercase in PHP

Make a string lowercase

Syntax : string strtolower ( string $str )

Returns string with all alphabetic characters converted to lowercase.
Parameters :
str : The input string.

Return Values :
Returns the lowercased string.
Examples :

<?php
		$originalString = "String Capitalization 1234";
		$lowerCase = strtolower($originalString);
		echo "Old string - $originalString <br />";
		echo "New String - $lowerCase";
?>

Display:
Old string – String Capitalization 1234
New String – string capitalization 1234

Home

See the related posts

Mysql server version using php function – mysql_get_server_info()    Text file prompt download or force download using php    Number of lines in a file using php    Check Image exists or Not Using php and GD    PHP Warning: Call-time pass-by-reference has been deprecated   

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment