Re: String Comparison

From: Date: Tue, 24 Jul 2001 23:07:37 +0000
Subject: Re: String Comparison
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59450@lists.php.net to get a copy of this message
On Tuesday 24 July 2001 23:59, Jason Bell wrote: > if (image/pjpeg == $type) { print "Type is JPG"; }; > you need to put image/jpeg in quotes. Ideally you would also do a safer string comparison than == eg if(!strcmp('image/jpeg',$type)) -- Phil Driscoll

« previous php.general (#59450) next »