1

PHP で MongoDB にクエリを実行しており、コレクションのすべてのデータをテーブルに表示したいと考えています。

これは、私が引き戻すデータの部分的なサンプルです。

Array (
  [0] => Array (
  [transactions] => Array (
    [_id] => 729cfe7c462089e204000000
    [propertyId] => 729cfe01462089e104000000
    [chargedTo] => tenant
    [tenantId] => 729cfe5f462089c104000000
    [category] => rent
    [amount] => 1000
    [paymentMethod] => cheque
    [datedAt] => 2013-01-01
    [status] => paid
    [attachmentUrl] =>
    [attachmentName] =>
    [description] =>
    [emailTenant] => 0
    [paidAt] =>
    [createdAt] => 2013-03-23T00:49:48.350Z
    [accountId] => 729cfc194620897c03000000
    [alert] =>
    )
  )
[1] => Array (
  [transactions] => Array (
    [_id] => 729cfe93462089ea04000000
    [propertyId] => 729cfe01462089e104000000
    [chargedTo] => tenant
    [tenantId] => 729cfe5f462089c104000000
    [category] => rent
    [amount] => 5000
    [paymentMethod] => cheque
    [datedAt] => 2013-03-22
    [status] => paid
    [attachmentUrl] =>
    [attachmentName] =>
    [description] =>
    [emailTenant] => 0
    [paidAt] =>
    [createdAt] => 2013-03-23T00:49:48.350Z
    [accountId] => 729cfc194620897c03000000
    [alert] =>
    )
  )
  .
  .
  .
[n] => Array (
  [transactions] => Array (
    [_id] => 729cfea54620897c03000001
    [propertyId] => 729cfe01462089e104000000
    [chargedTo] => tenant
    [tenantId] => 729cfe5f462089c104000000
    [category] => rent
    [amount] => 2222
    [paymentMethod] => Paypal
    [datedAt] => 2013-03-05
    [status] => paid
    [attachmentUrl] =>
    [attachmentName] =>
    [description] =>
    [emailTenant] => 0
    [paidAt] =>
    [createdAt] => 2013-03-23T00:49:48.350Z
    [accountId] => 729cfc194620897c03000000
    [alert] =>
    )
  )
)

このすべてのデータを PHP のテーブルに表示するにはどうすればよいですか?

4

1 に答える 1