如何访问对象stdClass对象的属性?

时间:2018-12-03 19:13:36

标签: object stdclass

在数组上执行print_r(),我得到以下信息:

 jrunscript example.js

如何访问数组中的特定值?  由于stdClass对象,以下代码无法正常工作

                stdClass Object
           (
[Products] => Array
    (
        [0] => stdClass Object
            (
                [Id] => 265531
                [ProductTitle] => test0
                [ZarfiyatSalane] => 600.000
                [MizanJazbMavad] => 660.000
            )
        [1] => stdClass Object
            (
                [Id] => 265532
                [ProductTitle] => test1
                [ZarfiyatSalane] => 500.000
                [MizanJazbMavad] => 500.000
            )

    )

)

0 个答案:

没有答案