-2

これをさらに使用するには、この値から 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] =>                                              
    )

)

4

1 に答える 1

0

これは恐ろしく、ばかげて、下手な質問ですが、試してみます。

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