1. Glossaryفەرهەنگی زاراوەکان
Static variable
گۆڕاوی ستاتیک
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە

Definitionپێناسە

A declared with the static keyword. It keeps its value between calls to the same function, but it is still visible only inside that function.

بریتییە لە کە بە وشەی static ناسێنراوە. لە نێوان بانگکردنەکانی هەمان ، لەبیر ناچێت، بەڵام هێشتا لە دەرەوەی نابینرێت.

Exampleنموونە

Compare with a normal local variable, which would print 111.

بەراوردی بکە لەگەڵ گۆڕاوێکی ناوخۆیی ئاسایی، کە ⁦111⁩ دەنووسێت.

function counter() {
    static $n = 0;
    $n++;
    return $n;
}
echo counter(), counter(), counter(); // 123

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

گۆڕاوی جێگیر، گۆڕاوە ستاتیکەکە، گۆڕاوە ستاتیکەکان، گۆڕاوێکی ستاتیک

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

نەگۆڕ (the notes' word for "static" websites) is used for constants here, so the loanword ستاتیک is proposed. The Kurdish scientists' dictionary uses جێگیر for 'static' (of libraries).

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

Videosڤیدیۆکان

PHP Variable Scopes - Static Variables - Full PHP 8 TutorialProgram With Gio · Englishئینگلیزی · 53K viewsبینین · 2.4K likesلایک · Partبەشی 3:13–5:41 (ofلە 5:41)

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