compare lists

From: Date: Sun, 18 Jan 2004 18:06:41 +0000
Subject: compare lists
Groups: php.general 
Request: Send a blank email to php-general+get-174969@lists.php.net to get a copy of this message
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

« previous php.general (#174969) next »