循環讀取陣列的指令
foreach ($array as $value) {
echo $value;
}
//-----------------------------
foreach ($array as $key => $value) {
echo $array[$key] = $value . '...';
}
※參考文獻-http://dettori.pixnet.net/blog/post/5256403
foreach ($array as $value) {
echo $value;
}
//-----------------------------
foreach ($array as $key => $value) {
echo $array[$key] = $value . '...';
}
※參考文獻-http://dettori.pixnet.net/blog/post/5256403
留言
張貼留言