//检查时候含有数据
public function initem($shopid){
if (array_key_exists($shopid,$this->item))
{
echo "Key exists! www.msheji.com";
}
else
{
echo "Key does not exist! www.msheji.com";
}} //稀奇古怪了 俩个括号 不在一起 就不行;
public function initem($shopid){
if (array_key_exists($shopid,$this->item))
{
echo "Key exists! www.msheji.com";
}
else
{
echo "Key does not exist! www.msheji.com";
}} //稀奇古怪了 俩个括号 不在一起 就不行;
不能
....
echo "Key does not exist! www.msheji.com";
}
}
???
public function initem($shopid){
if (array_key_exists($shopid,$this->item))
{
echo "Key exists! www.msheji.com";
}
else
{
echo "Key does not exist! www.msheji.com";
}
}
}没有什么问题呀
谢谢你了哈 !