User Tools

Site Tools


uphp:functions:strtolower

This is an old revision of the document!


strtolower

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Return the lowercase version of a string

Description

string strtolower ( string $str )

This function converts all alphabetic characters in str to lowercase

Parameter

$str: The input string

Return Values

Lowercase string

Example

<?
  $str="Mary Had A Little Lamb and She LOVED It So";
  $str=strtolower($str);
  print $str; // Prints "mary had a little lamb and she loved it so"
?>

See Also

charat() - Return the ASCII code for a character in a string at an index

strlen() - Return the length of a string

strpos() - Return the position of the first occurrence of a needle in a haystack

strrpos() - Return the position of the last occurrence of a needle in a haystack

strtoupper() - Return the UPPERCASE version of a string

substr() - Return a sub-string of the passed str from start for len characters. If len is blank it will return the string until the end.

ucfirst() - Convert a string to lowercase except for the first character of each word

uphp/functions/strtolower.1495813063.txt.gz · Last modified: 2021/09/13 05:56 (external edit)