做网站的的价位,网站架构有哪些,做两个一摸一样的网站,厦门网站营销if-else语句、switch语句
与其他语言相同
循环结构
for循环while循环do-while循环foreach循环#xff0c;搭配数组使用
foreach ($age as $avlue) //只输出值
{xxx;
}
foreach ($age as $key $avlue) //键和值都输出
{xxx;
}foreach ($age as $key 搭配数组使用
foreach ($age as $avlue) //只输出值
{xxx;
}
foreach ($age as $key $avlue) //键和值都输出
{xxx;
}foreach ($age as $key $avlue) //多维数组遍历
{xxx;foreach ($age as $key2 $avlue2){xxx;}
}