我想在图像中的PHP脚本分配给一个变量,这样我可以使图像显得时,我想它,通过声明的变量。分配图像PHP变量
$FoodList = array_unique($FoodList);
if (!empty($FoodList)) {
foreach ($FoodList as $key => $value) {
// The variable would go here, so that image would appear
//next to each variable
echo "<li>" . $value . "<li>";
}
echo "</ul>";
}
表明我们的样本数据为您'$ foodList'阵列 –
什么是你的'$ value'?图片来源? –