note 32704 deleted from ref.array by sniper

From: Date: Sat, 18 Oct 2003 18:00:55 +0000
Subject: note 32704 deleted from ref.array by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58822@lists.php.net to get a copy of this message
Note Submitter: ---- /** * Needed a transpose in order to make pg_fetch_all behave the * same as OCIFetchStatement. * Assumes: A is a 2x2 matrix * Returns: AT, a transpose of the 2x2 input matrix A. */ function transpose($A) { foreach ($A as $key1 => $value1) { foreach($A[$key1] as $key2 => $value2) { $AT[$key2][$key1] = $value2; } } return $AT; }

« previous php.notes (#58822) next »