我有以下array
命名$trainer
:獲取數組值
Array (
[0] => stdClass Object (
[id] => 2
[firstnamephonetic] =>
[lastnamephonetic] =>
[middlename] =>
[alternatename] =>
[firstname] => Admin
[lastname] => User
[email] => [email protected]
)
[1] => stdClass Object (
[id] => 4
[firstnamephonetic] =>
[lastnamephonetic] =>
[middlename] =>
[alternatename] =>
[firstname] => Bill
[lastname] => Clinton
[email] => [email protected]
)
[2] => stdClass Object (
[id] => 3
[firstnamephonetic] =>
[lastnamephonetic] =>
[middlename] =>
[alternatename] =>
[firstname] => Tom
[lastname] => Beggins
[email] => [email protected]
)
)
如何get only
的trainers
的first
和lastname
,所以當我想display
他們會告訴他們如下:
管理員用戶,Bill Clinton,Tom Beggins
你有什麼trid? – Miki