if ( count ( array_diff ( $array, array ( $array[0] ) ) > 0 ) { // not same }

On Sun, 15 Aug 2004 00:24:30 +0800
[EMAIL PROTECTED] (Jason Wong) wrote:

> On Saturday 14 August 2004 23:12, Hannes Magnusson wrote:
> > if ( count ( array_unique ( $array ) ) == 1 ) {
> >  // all fields have the same value
> > }
> > we could post solution to this problem for ever...
> 
> Indeed:
> 
>   if (count(array_flip($doo)) > 1) { // not same }
> 
> -- 
> 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
> ------------------------------------------
> /*
> One difference between a man and a machine is that a machine is quiet
> when well oiled.
> */

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to