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