Foreach ข้ามปัจจุบันทำซ้ำ

รหัสตัวอย่าง

0
0

foreach ข้ามปัจจุบันทำซ้ำ

// You can skip the current iteration using "continue"
// Example: Skip the current iteration if $number is 3;
$numbers = [1, 2, 3, 4, 5];

foreach($numbers as $number) {
	if($number == 3) {
    	continue;
    }
	echo $number . " + ";
}
// output: 1 + 2 + 4 + 5 +

หน้าคล้ายกัน

คล้ายกันหน้ากับตัวอย่าง

ในภาษาอื่นๆ

หน้านี้อยู่ในภาษาอื่นๆ

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................