note 29321 added to function.pg-fetch-object
| From: | ian at eiloart dot com | Date: | Mon, 10 Feb 2003 01:27:01 +0000 |
| Subject: | note 29321 added to function.pg-fetch-object | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-43707@lists.php.net to get a copy of this message | ||
This isn't all that useful. If you do, for example, foreach($row as $field) then you still get
every value twice!
You can do something like this, though:
foreach ($line as $key => $cell){
if (! is_numeric($key)){
echo "<td>$key $cell</td>";
}
}
is is_numeric strict enough?
--
http://www.php.net/manual/en/function.pg-fetch-object.php
http://master.php.net/manage/user-notes.php?action=edit+29321
http://master.php.net/manage/user-notes.php?action=delete+29321
http://master.php.net/manage/user-notes.php?action=reject+29321