Sweet, that solves my problem. Thanks for the help. -Brent ----- Original Message ----- From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 15, 2004 9:53 AM Subject: Re: [PHP] Need help with some logic and how to do it in PHP
> 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 > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php