note 32704 added to ref.array
| From: | php-general at lists dot php dot net | Date: | Wed, 04 Jun 2003 21:17:09 +0000 |
| Subject: | note 32704 added to ref.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49740@lists.php.net to get a copy of this message | ||
/**
* 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;
}
----
Manual Page -- http://www.php.net/manual/en/ref.array.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32704
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32704&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32704&report=yes