hey people,
I know theres something out there that does this but I can't think of the name of it so need a little push in the right direction...
if i have:
$name = 'tom';
but tom has logged in as TOM or Tom or even toM
I want to be able to take that into consideration when using an if function to check that it's tom thats logged in.
For example, if I have:
if ($_SESSION['user'] == $name){
echo 'you are '.$name;
}
I want it to be able to go through each combination of uppercase and lowercase options for the name 'tom' rather than just the lowercase 'tom'
🙂 hope that made sense,
any help is welcome,
Thanks.