Re: [PHP] string comparison

2008-07-13 Thread dg
On Jul 13, 2008, at 9:17 AM, Sudhakar wrote: hi i am writing a small application where a user enters a phrase in the textfield and i would like to display all the files present in the root directory which consists of the keyword or keywords entered by the user. i have used a few comparis

Re: [PHP] string comparison

2008-07-13 Thread Robert Cummings
On Sun, 2008-07-13 at 21:47 +0530, Sudhakar wrote: > hi > > i am writing a small application where a user enters a phrase in the > textfield and i would like to display all the files present in the root > directory which consists of the keyword or keywords entered by the user. > > i have used a f

RE: [PHP] string comparison

2002-07-27 Thread John Holmes
Strcmp() is case sensitive. So use it when you need a case sensitive comparison. ---John Holmes... > -Original Message- > From: Bas Jobsen [mailto:[EMAIL PROTECTED]] > Sent: Saturday, July 27, 2002 12:35 PM > To: PHP General > Subject: [PHP] string comparison > > Hello, > > When should

Re: [PHP] String Comparison

2001-07-24 Thread Phil Driscoll
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 -- PHP General Mailing List (http://www

Re: [PHP] String Comparison

2001-07-24 Thread Jason Bell
oh wait.. I just realize my goof it is treating it like I want to divide image by pjpeg. LMAO *sigh* I guess I should just go home while I'm ahead. haha -Jason - Original Message - From: "Jason Bell" <[EMAIL PROTECTED]> To: "PHP Users" <[EMAIL PROTECTED]> Sent: Tuesday, July 24