Local scope
مەودای ناوخۆیی
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە Definitionپێناسە
The scope inside a function. Variables created there exist only while the function runs and cannot be seen outside it.
ئەو مەودایەیە کە لەناو هەیە. گۆڕاوەکانی ئەم مەودایە تەنها تا تەواوبوونی هەمان دەمێننەوە و لە دەرەوەی نابینرێن.
Exampleنموونە
$msg exists only inside greet().
$msg تەنها لەناو greet() بوونی هەیە.
function greet() {
$msg = "Hi"; // local
echo $msg;
}
greet(); // Hi
// echo $msg; here would give: Warning: Undefined variable $msgOther Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
مەودای لۆکاڵ، مەودای نێوخۆیی، مەودا ناوخۆییەکە، مەودا ناوخۆییەکان، مەودایەکی ناوخۆیی
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
The notes write نێوخۆیی (as in «فایلە نێوخۆییەکان», local files); ناوخۆیی is the more common spelling.