php to lower case

what would be the php code to

import a string

make that string lowercase
LVL 1
jerseyguy0Asked:
Who is Participating?
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.