如何显示我的会话数组对象

我正在网站上订购一些炸玉米饼,我想显示购物车。 我正在使用存储在会话中的对象数组,但是我不知道如何显示对象属性。

Array
(
    [tacos] => Array
        (
            [0] => TacosClient Object
                (
                    [idTacosClient:TacosClient:private] => 
                    [size:TacosClient:private] => 2
                    [viande1:TacosClient:private] => 1
                    [viande2:TacosClient:private] => 2
                    [viande3:TacosClient:private] => 
                    [sauce1:TacosClient:private] => 3
                    [sauce2:TacosClient:private] => 3
                )

            [1] => TacosClient Object
                (
                    [idTacosClient:TacosClient:private] => 
                    [size:TacosClient:private] => 1
                    [viande1:TacosClient:private] => 1
                    [viande2:TacosClient:private] => 
                    [viande3:TacosClient:private] => 
                    [sauce1:TacosClient:private] => 1
                    [sauce2:TacosClient:private] => 
                )

        )

    [frites] => Array
        (
            [0] => FritesPanier Object
                (
                    [idFrites:FritesPanier:private] => 1
                    [idPanier:FritesPanier:private] => 
                    [quantite:FritesPanier:private] => 1
                )

        )

    [boissons] => Array
        (
            [0] => BoissonPanier Object
                (
                    [idBoisson:BoissonPanier:private] => 1
                    [idPanier:BoissonPanier:private] => 
                    [quantite:BoissonPanier:private] => 1
                )

        )

)

这是我当前的课程。

评论