Operator precedence
پێشینەیی کارپێکەرەکان
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە Definitionپێناسە
The rules that decide which operator runs first when an expression has several. * and / come before + and -, so 2 + 3 * 4 is 14; use parentheses to change the order.
ئەو یاسایانەن کە دیاری دەکەن کام یەکەم جێبەجێ دەکرێت کاتێک چەند کارپێکەرێکی تێدایە. * و / پێش + و - دێن، بۆیە 2 + 3 * 4 دەکاتە 14؛ بۆ گۆڕینی ڕیزبەندییەکە کەوانە بەکاربهێنە.
Exampleنموونە
Parentheses change the order.
کەوانە ڕیزبەندییەکە دەگۆڕێت.
echo 2 + 3 * 4; // 14
echo "<br>";
echo (2 + 3) * 4; // 20Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
ئەولەویەتی کارپێکەرەکان، ڕیزبەندیی کارپێکەرەکان
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
Shows which operator PHP runs first, how brackets change the order, and why && and 'and' can give different results.
پیشان دەدات سەرەتا کام جێبەجێ دەکات، کەوانە چۆن ڕیزبەندییەکە دەگۆڕێت و بۆچی && و and دەتوانن ئەنجامی جیاواز بدەن.
Learn more inزیاتر فێربە لە
- Operatorsکارپێکەرەکان
- Operators and Expressionsکارپێکەرەکان و دەربڕینەکان
- MATLAB as a Calculator: Operators, Variables and FormatsMATLAB وەک حاسیبە: کارپێکەرەکان، گۆڕاوەکان و شێوەکانی پیشاندان
- Better SELECT Queries: Conditions, Ranges, Lists, Patterns and NULLباشترکردنی فەرمانی SELECT: مەرجەکان، ماوەکان، لیست، شێوازی دەق و NULL
- Spreadsheet Essentialsبنەماکانی بەرنامەی خشتەیی
- Making Decisions: Relational Operators and if / elseif / elseبڕیاردان: کارپێکەرەکانی بەراوردکردن و if / elseif / else
- Boolean Expressions and Lawsدەربڕینە بوولییەکان و یاساکانی جەبری بوول
- Conditional Statements: if, else, elseif and switchڕستە مەرجییەکان: if و else و elseif و switch
- Functionsکردارەکان
- Constants and variable scopeنەگۆڕەکان و مەودای گۆڕاوەکان