Fandom

PHP Wiki

Strtolower

51pages on
this wiki
Add New Page
Talk0 Share

Returns a given string with all alphabetic characters converted to lowercase.

Arguments Edit

void strtolower ({{{params}}})

Argument Inclusion Edit

  • strtolower needs PHP version 4 or 5 to work.

Return values Edit

strtolower will return the given string with all alphabetic characters converted to lowercase. According to the php manual 'alphabetic' is determined by the current locale. So umlaut-A (Ä) or other special characters from different languages might not get converted.

Examples Edit

Example 1: The direct way Edit

 <?php
  echo strtolower("I AM Big");
 ?>

Output Edit

i am big

Example 2: Using a variable Edit

 
 <?php
  $string = "SPECIAL CHARS (#*+...) and lowercase stay UNTOUCHED!";
  echo strtolower($string);
 ?>

Output Edit

special chars (#*+...) and lowercase stay untouched!
For more details on this function, visit its entry in the php manual.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.