私は RedBeansPHP 3.3 を使用しており、$result という名前の RedBeans findOne によって作成された次の PHP オブジェクトがあります。
RedBean_OODBBean Object
(
[null:RedBean_OODBBean:private] =>
[properties:RedBean_OODBBean:private] => Array
(
[id] => 10
[datetime] => 2013-02-10 10:17:43
[ip] => 68.32.52.219
[vcode] => 6780-QBDY
[roll1] => 7
[roll2] => 8
[roll3] => 10
[roll4] => 6
[roll5] => 1
[roll6] => 4
[roll7] => 2
[roll8] => 4
[roll9] => 2
[roll10] => 8
)
[__info:RedBean_OODBBean:private] => Array
(
[type] => dice
[sys.id] => id
[tainted] =>
[sys.orig] => Array
(
[id] => 10
[datetime] => 2013-02-10 10:17:43
[ip] => 68.32.52.219
[vcode] => 6780-QBDY
[roll1] => 7
[roll2] => 8
[roll3] => 10
[roll4] => 6
[roll5] => 1
[roll6] => 4
[roll7] => 2
[roll8] => 4
[roll9] => 2
[roll10] => 8
)
)
[beanHelper:RedBean_OODBBean:private] => RedBean_BeanHelper_Facade Object
(
)
[fetchType:RedBean_OODBBean:private] =>
[withSql:RedBean_OODBBean:private] =>
[aliasName:RedBean_OODBBean:private] =>
)
[type] => dice
2 番目の配列の値にアクセスしたい。そのためのPHP構文は何ですか?
$result->???????->type [閉じるか?]
ありがとう!