Bug #1217: Printing a 2-D Array
| From: | nick at centergate dot com | Date: | Wed, 10 Mar 1999 23:44:09 +0000 |
| Subject: | Bug #1217: Printing a 2-D Array | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4561@lists.php.net to get a copy of this message | ||
From: nick@centergate.com
Operating system: Linux 2.2/ RH
PHP version: 3.0.7
PHP Bug Type: Misbehaving function
Bug description: Printing a 2-D Array
//$temp is a 2-D Array that was returned from an Oracle //query. Where the variable was assign to
shouldn'y matter.
for ($i=0; $i < sizeof($temp) - 1; $i++) {
$var2 = $temp[$i][1];
echo "$i:$temp[$i][0]:$var2";
}
This prints out:
0:Array[0]:nick43
If is assign the array element to a variable it prints out fine, if I try to print the variable out
directly, I get Array[$i]. I would rather print out the variable directly. Is this a bug ?
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net