Re: Need help with some logic and how to do it in PHP

From: Date: Sun, 15 Aug 2004 14:53:49 +0000
Subject: Re: Need help with some logic and how to do it in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-193882@lists.php.net to get a copy of this message
On Sunday 15 August 2004 22:44, Brent Clements wrote: > I have 7 string values, if any number of them are the same, I need to ouput > that value, if they are all different, I need to output a blank string "". > How would I do this in php outside of writing a huge if/then statement? > This is a variation of my "String compare of 7 text strings" question > yesterday. All of the 7 string values are values in an array, ie $strings > = array($string1, $string2, $string3, $string4, $string5, $string6, > $string7); array_count_values() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* An infallible method of conciliating a tiger is to allow oneself to be devoured. -- Konrad Adenauer */

« previous php.general (#193882) next »