Re: comparisons

From: Date: Mon, 12 Feb 2001 21:40:21 +0000
Subject: Re: comparisons
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39272@lists.php.net to get a copy of this message
On Monday 12 February 2001 10:41, PHPBeginner.com wrote: > I'm having a rather strange problem. I'm trying to compare two > values. "01" and "1". The variables names that they are submitted > under are pick1 and pick2. i use the following code [...] > I still get the error. Anyone have any ideas? These two valuse mustbe > evaluated as different. if (strcmp ($pick1, $pick2) == 0) echo "equal"; else echo "different"; -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Those who will not reason, are bigots, those who cannot, are fools, and those who dare not, are slaves. - George Gordon Noel Byron (1788-1824), [Lord Byron]

« previous php.general (#39272) next »