Hi
I use the following:
<? $no = "2"; $letter = "A"; if ($letter == "a") $no = "1"; echo "Nummer $no"; ?>
as a result I get a "2". Is it possible to get "1" meaning A=a?
Thanks in Advance. Chris
well, string comparisions are always going to be case sensitive. So why not do:
<?
$no = 2; $letter = "A"; if (strtolower($letter) == "a") $no = 1;
echo $no;
?>
That should work, any reason not to do it this way?
Chris King
See the manual entry on strcasecmp -- Binary safe case-insensitive string comparison