Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/295.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 传递数组Id';s到mysql查询_Php_Zend Framework - Fatal编程技术网

Php 传递数组Id';s到mysql查询

Php 传递数组Id';s到mysql查询,php,zend-framework,Php,Zend Framework,我有以下数组: Array ( [0] => Array ( [ID] => 119256 ) [1] => Array ( [ID] => 247436 ) [2] => Array ( [ID] => 266197 ) [3] => Array

我有以下数组:

Array
(
    [0] => Array
        (
            [ID] => 119256
        )

    [1] => Array
        (
            [ID] => 247436
        )

    [2] => Array
        (
            [ID] => 266197
        )

    [3] => Array
        (
            [ID] => 256299
        )
)
我想把这个数组id一个接一个地传递给下面的函数,在这里我编写了mysql查询

$search->getInformation($ID);

请帮助我如何做到这一点。

如果您需要这样的东西:

foreach ($array_variable as $key => $value){
    $search->getInformation($value['ID']);
}

您以前的giveb只有$value。你错过了“ID”键:)并且你编辑了你的答案(刚刚看到我们的答案:)好吧,当你们给出答案时,我编辑了答案,但这永远是一个是或不是…你没有写任何问题。想要点什么是好的,但是你想问什么?到目前为止你试过什么?
foreach ($array_variable as $key => $value){
    $search->getInformation($value['ID']);
}