cvs: pear /PHP_Compat/Compat/Function array_udiff_uassoc.php

From: Date: Tue, 31 Aug 2004 11:06:51 +0000
Subject: cvs: pear /PHP_Compat/Compat/Function array_udiff_uassoc.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-23525@lists.php.net to get a copy of this message
aidan Tue Aug 31 07:06:51 2004 EDT Modified files: /pear/PHP_Compat/Compat/Function array_udiff_uassoc.php Log: CS Fix http://cvs.php.net/diff.php/pear/PHP_Compat/Compat/Function/array_udiff_uassoc.php?r1=1.3&r2=1.4&ty=u Index: pear/PHP_Compat/Compat/Function/array_udiff_uassoc.php diff -u pear/PHP_Compat/Compat/Function/array_udiff_uassoc.php:1.3 pear/PHP_Compat/Compat/Function/array_udiff_uassoc.php:1.4 --- pear/PHP_Compat/Compat/Function/array_udiff_uassoc.php:1.3 Tue Aug 31 06:46:05 2004 +++ pear/PHP_Compat/Compat/Function/array_udiff_uassoc.php Tue Aug 31 07:06:51 2004 @@ -15,7 +15,7 @@ // | Authors: Aidan Lister <aidan@php.net> | // +----------------------------------------------------------------------+ // -// $Id: array_udiff_uassoc.php,v 1.3 2004/08/31 10:46:05 aidan Exp $ +// $Id: array_udiff_uassoc.php,v 1.4 2004/08/31 11:06:51 aidan Exp $ /** @@ -25,7 +25,7 @@ * @package PHP_Compat * @link http://php.net/function.array_udiff_uassoc * @author Aidan Lister <aidan@php.net> - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ * @since PHP 5 * @require PHP 4.0.1 (trigger_error) */ @@ -51,21 +51,18 @@ // Check arrays $count = count($args); - for ($i = 0; $i < $count; $i++) - { + for ($i = 0; $i < $count; $i++) { if (!is_array($args[$i])) { trigger_error('array_udiff_uassoc() Argument #' . ($i + 1) . ' is not an array', E_USER_WARNING); return; } } - $diff = array (); // Traverse values of the first array - foreach ($args[0] as $key => $value) - { + $diff = array (); + foreach ($args[0] as $key => $value) { // Check all arrays - for ($i = 1; $i < $count; $i++) - { + for ($i = 1; $i < $count; $i++) { if (!isset($args[$i][$key])) { continue; }

« previous php.pear.cvs (#23525) next »