0

プロパティを配列オブジェクト変数に追加するにはどうすればよいですか? 次のような変数オブジェクトがあるとします。

    Array
(
    [0] => stdClass Object
        (
            [category] => Nuklir
            [id] => 715
            [title] => Testing Article Nuklir
            [alias] => testing-article-nuklir
            [title_alias] => 
            [introtext] => <p><span style="color: #666666; font-family: 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 19px;" mce_style="color: #666666; font-family: 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 19px;">Vivamus libero eros, dictum id aliquam in, tristique id sapien. Maecenas rhoncus malesuada aliquet. Morbi vulputate vulputate mauris quis condimentum. Ut ut ligula et mauris accumsan tristique ut nec lacus.</span></p><p><span style="color: #666666; font-family: 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 19px;" mce_style="color: #666666; font-family: 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 19px;">Vivamus libero eros, dictum id aliquam in, tristique id sapien. Maecenas rhoncus malesuada aliquet. Morbi vulputate vulputate mauris quis condimentum. Ut ut ligula et mauris accumsan tristique ut nec lacus.</span></p><p><span style="color: #666666; font-family: 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 19px;" mce_style="color: #666666; font-family: 'Lucida Grande', Arial, sans-serif; font-size: 13px; line-height: 19px;">Vivamus libero eros, dictum id aliquam in, tristique id sapien. Maecenas rhoncus malesuada aliquet. Morbi vulputate vulputate mauris quis condimentum. Ut ut ligula et mauris accumsan tristique ut nec lacus.</span><br /></p>
            [fulltext] => 
            [sectionid] => 7
            [state] => 1
            [catid] => 25
            [created] => 2012-12-10 07:51:03
            [created_by] => 110
            [created_by_alias] => 
            [modified] => 0000-00-00 00:00:00
            [modified_by] => 0
            [checked_out] => 0
            [checked_out_time] => 0000-00-00 00:00:00
            [publish_up] => 2012-12-10 07:51:03
            [publish_down] => 0000-00-00 00:00:00
            [hits] => 0
            [images] => 
            [urls] => 
            [ordering] => 1
            [metakey] => 
            [metadesc] => 
            [access] => 0
            [slug] => 715:testing-article-nuklir
            [catslug] => 25:nuklir
            [readmore] => 0
            [author] => migrasi
            [usertype] => Super Administrator
            [groups] => Public
            [author_email] => test@yahoo.com
        )

)

ここで必要なのは、新しいプロパティを追加することです。[site_id] => [author_email] の下の 1 つ。出来ますか?

4

1 に答える 1