PHP数组操作问题Variable passed to each() is not an array or object
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/09/23 11:17:36
PHP数组操作问题Variable passed to each() is not an array or object
$price=array('tires'=>100);$price['oil'] =99;$price['spark plug']=50;
$price['test']=100;
while(list($product,$price)=each($price))
echo $product.'-'.$price.'
';
ERROR:Variable passed to each() is not an array or object
$price=array('tires'=>100);$price['oil'] =99;$price['spark plug']=50;
$price['test']=100;
while(list($product,$price)=each($price))
echo $product.'-'.$price.'
';
ERROR:Variable passed to each() is not an array or object
你的list中用了相同的price变量名导致你的price数组被赋值覆盖了.把list中的price改个名字.
==========
$price=array('tires'=>100);$price['oil'] =99;$price['spark plug']=50;
$price['test']=100;
while(list($product,$price_1)=each($price))
echo $product.'-'.$price_1.'
';
==========
$price=array('tires'=>100);$price['oil'] =99;$price['spark plug']=50;
$price['test']=100;
while(list($product,$price_1)=each($price))
echo $product.'-'.$price_1.'
';
money is not an object翻译
英语翻译:an object or work of art that is added to a collection
"Object reference not set to an instance of an object"这句英语是什
PHP中如何才为一个数组,$arr=array(array(1,2,3,4,5),array(6,7,8,9,10))算
Your client is not allowed to accesss the requested object
client is not allowed to access the requested object
It is not nor Westren men to bug or hold each other中文翻译
英语翻译An invention is an object, process, or technique which d
出现这个(0bject reference not set to an instance of an object.
每次打开excel都会出现run-time error‘91’object variable or with block
每次打开Word2007都出现Run-time error '91' Object variable or with b
an array