Fall-through
تێپەڕین
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە Definitionپێناسە
In a switch, when a case has no break, PHP keeps running the code of the next cases too. This is usually a , but it can be used on purpose to share code between cases.
لە ڕستەی switch، ئەگەر لە کۆتایی بەشێکی case هیچ break نەبێت، PHP کۆدی بەشەکانی دواتریش جێبەجێ دەکات. ئەمە زۆرجار دەبێتە هۆی ، بەڵام دەکرێت بە ئەنقەست بۆ هاوبەشکردنی کۆد لە نێوان چەند بەشێکدا بەکاربهێنرێت.
Exampleنموونە
Cases 12, 1 and 2 fall through to the same code on purpose.
بەشەکانی 12 و 1 و 2 بە ئەنقەست بەرەو هەمان کۆد تێدەپەڕن.
$month = 2;
switch ($month) {
case 12:
case 1:
case 2:
echo "Winter";
break;
default:
echo "Not winter";
}Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
فۆڵ-سروو، تێپەڕینەکە، تێپەڕینەکان، تێپەڕینێک، تێپەڕینی، تێپەڕینەکانی
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
No Kurdish term in the course materials; تێپەڕین ("passing through") is a descriptive proposal.