1. Glossaryفەرهەنگی زاراوەکان
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 $msg

Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر

مەودای لۆکاڵ، مەودای نێوخۆیی، مەودا ناوخۆییەکە، مەودا ناوخۆییەکان، مەودایەکی ناوخۆیی

Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە

The notes write نێوخۆیی (as in «فایلە نێوخۆییەکان», local files); ناوخۆیی is the more common spelling.

Related termsزاراوە پەیوەندیدارەکان

Videosڤیدیۆکان

Python Tutorial: Variable Scope - Understanding the LEGB rule and global/nonlocal statementsCorey Schafer · Englishئینگلیزی · 414K viewsبینین · 12K likesلایک · Partبەشی 1:31–7:07 (ofلە 20:58)
PHP Variable Scopes - Static Variables - Full PHP 8 TutorialProgram With Gio · Englishئینگلیزی · 53K viewsبینین · 2.4K likesلایک · Partبەشی 1:00–1:41 (ofلە 5:41)
PHP Tutorial (& MySQL) #14 - Variable ScopeNet Ninja · Englishئینگلیزی · 66K viewsبینین · 1.3K likesلایک · Partبەشی 0:00–1:26 (ofلە 8:57)

Learn more inزیاتر فێربە لە