如何获取此数组中每个fID的值

时间:2013-06-10 07:44:19

标签: arrays concrete5

我希望从此值获取fID值以进一步使用它。有人可以帮助我。

阵 (     [0] =>排列         (             [slideshowImgId] => 126             [bID] => 84             [fID] => 1             [url] =>             [持续时间] => 0.5             [fadeDuration] => 0             [groupSet] => 0             [position] => 0             [imgHeight] => 212             [descriptionLink] =>             [descriptionHeading] =>名new1             [descriptionParagraph] => new1body
            [transitionNum] => 3             [transitionSlicing] =>垂直             [transitionDirection] =>下             [transitionFader] =>没有             [transitionDelay] => 0.1             [transitionZmultiplier] => 2             [iframecontent] =>
        )

[1] => Array
    (
        [slideshowImgId] => 127
        [bID] => 84
        [fID] => 4
        [url] => 
        [duration] => 0.5
        [fadeDuration] => 0
        [groupSet] => 0
        [position] => 1
        [imgHeight] => 150
        [descriptionLink] => 
        [descriptionHeading] => new2
        [descriptionParagraph] =>                                               new2
        [transitionNum] => 3
        [transitionSlicing] => vertical
        [transitionDirection] => down
        [transitionFader] => none
        [transitionDelay] => 0.1
        [transitionZmultiplier] => 2
        [iframecontent] =>                                              
    )

1 个答案:

答案 0 :(得分:0)

这是一个可怕,荒谬,糟糕的问题,但我会试一试:

foreach ($array as $slideshow) {
    $file = File::getByID($slideshow['fID']);
}