[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1425
  • Last Modified:

php to lower case

what would be the php code to

import a string

make that string lowercase
0
jerseyguy0
Asked:
jerseyguy0
1 Solution
 
reb73Commented:
Like this?
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtolower($str);
echo $str; // Prints mary had a little lamb and she loved it so
?>

Open in new window

0
 
Ray PaseurCommented:
Man page here:
http://us2.php.net/manual/en/function.strtolower.php

Check the "See also" for some other ways to transform strings!

Best regards, ~Ray
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now