-2

我想从该值中获取 fID 值以进一步使用它。有人可以帮帮我。

数组 ( [0] => 数组 ( [slideshowImgId] => 126 [bID] => 84 [fID] => 1 [url] => [duration] => 0.5 [fadeDuration] => 0 [groupSet] => 0 [位置] => 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] =>                                              
    )

)

4

1 回答 1

0

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

foreach ($array as $slideshow) {
    $file = File::getByID($slideshow['fID']);
}
于 2013-06-11T00:39:40.457 回答