Re: Need help with some logic and how to do it in PHP
| From: | Brent Clements | Date: | Sun, 15 Aug 2004 15:12:59 +0000 |
| Subject: | Re: Need help with some logic and how to do it in PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193883@lists.php.net to get a copy of this message | ||
Sweet, that solves my problem. Thanks for the help.
-Brent
----- Original Message -----
From: "Jason Wong" <php-general@gremlins.biz>
To: <php-general@lists.php.net>
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
>
>