Hi there, I am reading the book phpmysql and have a question to if statements. I like to know how I can make an if statement case insensitive
The below example shows an if statement, so that if the condition "Kevin" is true, the sentence "Welcome to our website!" is displayed. Now I like to know how I need to modify the code that if "Kevin", "kevin", "keVin", "keviN" etc.... is entered the condition becomes true without putting all combinations into the formula.
the if statement is:
$name = $_REQUEST['name'];
if ($name == 'Kevin')
echo 'Welcome to our website!';
thanks for your help in advance!