thx Jason I had overlooked a few functions. My bad. strpos() also works.
thx, -- gil > -----Original Message----- > From: Jason Sheets [mailto:[EMAIL PROTECTED] > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php