RE: [PHP] compare lists

From: Date: Sun, 18 Jan 2004 18:23:39 +0000
Subject: RE: [PHP] compare lists
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174973@lists.php.net to get a copy of this message
thx Jason I had overlooked a few functions. My bad. strpos() also works. thx, -- gil > -----Original Message----- > From: Jason Sheets [mailto:jsheets@idahoimageworks.com] > Sent: Sunday, January 18, 2004 1:15 PM > To: mayo > Subject: Re: [PHP] compare lists > > > mayo wrote: > > >I would like to compare strings. I'm using this for my navigation > > > >PSEUDO-CODE > > > >IF $title CONTAINS "abc: def" > > > > print TITLE; > > > > print SUB1; > > print SUB2; > > print SUB3; > > > >ELSE > > > > print TITLE; > > > > > >Comparing the number of characters in one string with another > does not do > >the trick. (strcmp) > > > >Is there anything besides a general regex? > > > >Or is my concern about processing speed unwaranted? There would > be dozens of > >look-ups per page, even using switch-case. > > > >-- gil > > > > > > > Look at strstr > > Jason

« previous php.general (#174973) next »