View previous topic :: View next topic |
Author |
Message |
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Sat Dec 24, 2005 1:12 pm Post subject: IF |
|
|
I'm too lazy to use Google, so I'm asking you guys.
How can I make the IF-function not case-sensitive?
I want it return true if the variabels are
$a = "abcde";
and
$b = "ABcDe"; |
|
Back to top |
|
 |
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Sat Dec 24, 2005 1:28 pm Post subject: |
|
|
Code: | function ismatch($input1, $input2) {
if ($input1 == $input2)
return true;
return false;
}
function is_casematch($input1, $input2) {
if ($input1 === $input2)
return true;
return false;
}
//And the purpose of this needlessly long example is: two equal signs are a match, three are a case sensitive match. |
_________________
 |
|
Back to top |
 |
 |
|