Ok in ASP/VBScript I can do:
LCase(variable) and it will turn the variable into lowercase.
How do I do this in PHP??
Thanks
Change to lower case
Moderator: General Moderators
like this
Mark
Code: Select all
<?php
$str = "MY UPPERCASE VARIABLE";
$str = strtolower($str);
echo $str; // Prints my uppercase variable
?>-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
hope this helps
edit : damn he beat me again!!!
Code: Select all
<?php
$smallcase = "This will All Go LOWERCASE";
$str = strtolower($smallcase);
echo $str;
?>-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
Code: Select all
<?php
if ($bech100 > $malcolmboston) {
echo "Cant Beat Him, So Be More Concise";
} else {
echo "No Longer A Noob";
}
?>to change all to uppercase
Code: Select all
<?php
$uppercase = "This will All Go UPPERCASE";
$str = strtoupper($uppercase);
echo $str;
?>