Definitionپێناسە
A named block of code that does one job and can be used again and again by calling its name. It can take and give back a .
بلۆکێکی ناونراوی کۆدە کە کارێکی دیاریکراو ئەنجام دەدات و دەتوانیت بە بانگکردنی ناوەکەی چەندین جار بەکاری بهێنیتەوە. دەتوانێت وەربگرێت و بگەڕێنێتەوە.
Exampleنموونە
Write the code once, use it many times.
کۆدەکە یەک جار بنووسە و چەندین جار بەکاری بهێنە.
function greet($name) {
return "Hello, $name!";
}
echo greet("Shilan"); // Hello, Shilan!Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
فەنکشن، فانکشن، پابەندیی، کردارەکە، کردارەکان، کردارێک، کرداری، کردارەکانی
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
The notes call PHP functions کردار («کرداری isset»، «کرداری end»), a word that also means "verb" and "operation"; this site's chapter titles and many teachers say فەنکشن. The Kurdish scientists' dictionary uses پابەندیی، نەخشە (the Grade 7 textbook also calls function keys دوگمەکانی نەخشە); Sozyar Osman's CS book keeps Function in Latin.
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
Learn more inزیاتر فێربە لە
- Functionsکردارەکان
- Defining and Calling Functionsناساندن و بانگکردنی کردارەکان
- Function Files and Anonymous Functionsفایلەکانی کردار و کردارە بێناوەکان
- Variable Scope: Local and Globalمەودای گۆڕاوەکان: ناوخۆیی و گشتی
- Constants and variable scopeنەگۆڕەکان و مەودای گۆڕاوەکان
- Return Values and Noneنرخە گەڕاوەکان و None
- Course review and practiceپێداچوونەوە و ڕاهێنانی کۆرسەکە
- Dart Functions and Collectionsکردارەکان و کۆکراوەکانی Dart
- Futures, async and await in DartFuture،
asyncوawaitلە Dartـدا - Lists, References, Copies and Functionsلیستەکان، ئاماژەکان، کۆپی و کردارەکان
- Strings and string functionsزنجیرەنووسەکان و کردارەکانی زنجیرەنووسە
- Modules and importمۆدیوڵەکان و import
- SQL Functions, Aggregates and GROUP BYکردارەکانی SQL، کردارەکانی کۆکردنەوە و GROUP BY
- Project: A Word-Scramble Gameپڕۆژیلە: یاریی پیتە تێکەڵەکان
- Built-in Maths Functionsکردارە ئامادەکانی بیرکاری
- Agent Programs, Pseudocode and Algorithm Analysisبەرنامەکانی ئەیجێنت، نیمچەکۆد و شیکارکردنی ئەلگۆریزم
- Sorting Arraysڕیزکردنی ڕیزەکەکان
- Recursionخۆبانگکردنەوە
- Positional, Keyword and Default Argumentsئارگیومێنتە شوێنییەکان، ئارگیومێنتە ناودارەکان و نرخە بنەڕەتییەکان
- Including Files: include and requireهاوردەکردنی فایل: include و require
- PHP Superglobalsسووپەرگلۆباڵەکانی PHP
- PHP Syntax: Tags, Statements and Commentsداڕستنی PHP: تاگ، ڕستە و لێدوان
- Connecting PHP to MySQLپەیوەندیکردنی PHP بە MySQL
- Form Security and Sticky Formsئاسایشی فۆرم و فۆرمە لکاوەکان
- Your First Program: print() and Commentsیەکەم بەرنامە:
print()و لێدوانەکان - Processing Two-Dimensional Listsکارکردن لەسەر لیستە دووڕەهەندەکان
- Project: Binary to Decimal Converterپڕۆژیلە: گۆڕینی دووانی بۆ دەیی
- Arrays in PHPڕیزەکەکان لە PHPـدا
- Handling Errors with try and exceptمامەڵەکردن لەگەڵ هەڵاوێردە بە try و except
- MATLAB as a Calculator: Operators, Variables and FormatsMATLAB وەک حاسیبە: کارپێکەرەکان، گۆڕاوەکان و شێوەکانی پیشاندان
- Buttonsدوگمەکان
- Building Tic-Tac-Toe in Pythonدروستکردنی یاریی ئێکسوئۆ بە Python
- Alpha-Beta Pruningبڕینی ئەلفا-بێتا
- What Is a Function?نەخشە چییە؟
- Bubble Sort, Insertion Sort and How Fast Sorting Isڕیزکردنی بڵقی، ڕیزکردن بە تێخستن و خێرایی ڕیزکردن
- Project: Finding Roots Numericallyپڕۆژە: دۆزینەوەی ڕەگ بە ڕێگە ژمارەییەکان
- Output with echo and printدەرخستە بە echo و print
- Getting Data from the Internet: HTTP and JSONوەرگرتنی دراوە لە ئینتەرنێت: HTTP و JSON
- Minimax: An AI That Never LosesMinimax: یاریزانێکی ژیر کە هەرگیز نادۆڕێت
- Python Next to JavaPython لە تەنیشت Javaـەوە
- Making Decisions: Relational Operators and if / elseif / elseبڕیاردان: کارپێکەرەکانی بەراوردکردن و if / elseif / else
- Errors and Debuggingهەڵەکان و کرمەکوژی
- Tuples, Sets and Dictionariesتاپڵەکان، کۆمەڵەکان و فەرهەنگەکان
- Functions for Arraysکردارەکانی ڕیزەک
- Synchronous and Asynchronous Workکاری هاوکات و ناهاوکات
- Stacks: Last In, First Outستاکەکان: دوایین هاتوو، یەکەم دەرچوو
- Welcome to MATLAB (and Octave)بەخێربێیت بۆ MATLAB (و Octave)
- Data typesجۆرەکانی دراوە
- Opening Links and Other Apps with url_launcherکردنەوەی بەستەرەکان و ئەپەکانی تر بە url_launcher
- Queriesپرسەکان
- Binary Search and Hashingگەڕانی دووانی و هاشکردن
- Conditional Statements: if, else, elseif and switchڕستە مەرجییەکان: if و else و elseif و switch
- Uploading Filesبارکردنی فایل
- App State and Declarative UIدۆخ و ڕووکاری وەسفی
- Programming Languages and Algorithmsزمانەکانی بەرنامەسازی و ئەلگۆریزمەکان
- Cookiesکووکییەکان
- A Login System with Sessionsسیستەمی چوونەژوورەوە بە سێشن
- Nested Loops and Patternsخولە ناوەکییەکان و کێشانی شێوە
- Script Files, input, disp and fprintfفایلەکانی دەسنووس، input، disp و fprintf
- for Loops: Sums, Series and Searchingخولەکانی for: کۆکردنەوە، زنجیرە و گەڕان
- Introduction to PHPسەرەتایەک بۆ PHP
- Inserting and selecting data with PHPزیادکردن و هەڵبژاردنی زانیاری بە PHP
- Agents, Sensors and Actuators; Rational Agentsئەیجێنتەکان، هەستەوەرەکان و جووڵێنەرەکان؛ ئەیجێنتە عەقڵانییەکان
- Composition of Functionsئاوێتەکردنی نەخشەکان
- Variablesگۆڕاوەکان
- Form Validationپشتڕاستکردنەوەی فۆرم
- Redirects: Sending the Browser Somewhere Elseئاڕاستەکردنەوە: ناردنی تۆڕگەڕ بۆ شوێنێکی تر
- Building URIs in Dart: SMS and E-mail Linksدروستکردنی URI لە Dartـدا: بەستەرەکانی نامەی کورت و ئیمەیڵ
- Firebase and Cloud FirestoreFirebase و Cloud Firestore
- Depth-First and Breadth-First Searchگەڕانی قووڵایی و گەڕانی پانایی
- Solving a Maze with DFS and BFSچارەسەرکردنی لابیرینت بە DFS و BFS
- Operators and Expressionsکارپێکەرەکان و دەربڕینەکان
- Loops: while, do...while, for, foreach, break and continueخولەکان: while و do...while و for و foreach و break و continue
- Priority Queues and Heapsکیووە پێشینەییەکان و هیپەکان
- Search Problems: States, Actions, Goals and Costsکێشەکانی گەڕان: دۆخەکان، کردەوەکان، ئامانج و کۆست
- Search Practice: Midterm-Style Tasksڕاهێنانی گەڕان: ئەرکی وەک تاقیکردنەوەی نیوەی وەرز
- How a Computer Runs a Programکۆمپیوتەر چۆن بەرنامەیەک جێبەجێ دەکات
- Quartiles, Percentiles and Box Plots (Supplementary)چواریەکەکان، سەدیەکەکان و هێڵکارییە سندووقییەکان (زیادە)
- sum, max, min and Sortingsum، max، min و ڕیزکردن
- Queues and Deques: First In, First Outکیووەکان و کیووە دووسەرەکان: یەکەم هاتوو، یەکەم دەرچوو
- while Loops, break and continueخولەکانی while، break و continue
- Lists and Gridsلیست و تۆڕ
- Text Fields and Formsخانەکانی دەق و فۆرمەکان
- Splash Screensشاشەکانی دەستپێک
- The Consumer Widgetویجێتی Consumer
- The Selector Widget: Fewer Rebuildsویجێتی Selector: دووبارە دروستکردنەوەی کەمتر
- Injection Attacks: SQL Injection and Cross-Site Scriptingهێرشەکانی تێخزاندن: تێخزاندنی SQL و XSS
- The Python You Need for the AI Labsئەو Pythonـەی بۆ تاقیگەکانی ژیریی دەستکرد پێویستە
- Simulated Annealingsimulated annealing
- Reasoning with a Knowledge Base in Pythonبیرکردنەوە بە بنکەیەکی زانین لە Pythonـدا
- Default Values and Validation Rulesنرخە بنەڕەتییەکان و ڕێساکانی پشتڕاستکردنەوە
- Geometric, Harmonic and Quadratic Meansناوەندی ئەندازەیی، ناوەندی هارمۆنیک و ناوەندی دووجایی
- Coefficient of Variation and Momentsهاوکۆلکەی گۆڕان و مۆمێنتەکان
- Skewness, Kurtosis and the Mean–Median–Mode Relationناهاوجێبوون، پلەی لووتکەیی و پەیوەندیی نێوان ناوەند، ناوەڕاستە و باو
- Programming Languagesزمانەکانی بەرنامەسازی
- Algorithms, Pseudocode and Flowchartsئەلگۆریزمەکان، نیمچەکۆد و هێڵکارییەکانی ڕەوت
- Variables and Data Typesگۆڕاوەکان و جۆرەکانی دراوە
- The for Loop and range()خولی for و
range() - Adding to a List and Finding Itemsزیادکردن بۆ لیستێک و دۆزینەوەی دانەکان
- Creating Matricesدروستکردنی ماتریکسەکان
- Plotting Graphsکێشانی هێڵکارییەکان
- XAMPP: Your Own Local Web ServerXAMPP: ڕاژەکاری وێبی ناوخۆیی خۆت
- Web APIs and JSONAPIـی وێب و JSON
- App Architecture: the MVVM Patternتەلارسازیی نەرمەواڵە: شێوازی MVVM
- Stateless and Stateful Widgetsویجێتە بێدۆخەکان و ویجێتە دۆخدارەکان
- ChangeNotifier, ChangeNotifierProvider and MultiProviderChangeNotifier، ChangeNotifierProvider و MultiProvider
- Organising an MVVM Project: Folders, Services and get_itڕێکخستنی پڕۆژەیەکی MVVM: فۆڵدەرەکان، خزمەتگوزارییەکان و get_it
- Tables, Fields and Datasheetsخشتەکان، ستوونەکان و پەڕەکانی دراوە
- Logarithms and Their Rulesلۆگاریتمەکان و یاساکانیان
- The Arithmetic Mean and the Weighted Meanناوەند و ناوەندی قورسکراو
- The Median and the Modeناوەڕاستە و باو
- Measuring Spread: Range and Mean Deviationپێوانی پەرتبوون: مەودا و لادانی نێوانەیی
- Variance and Standard Deviationلێکنەچوون و لادانی پێوانەیی
- Counting and Permutationsژماردن و گۆڕینەکان
- Moments, Variance and Standard Deviation of a Random Variableمۆمێنتەکان، لێکنەچوون و لادانی پێوانەیی گۆڕاوێکی هەڕەمەکی
- The Normal Distribution (Supplementary)دابەشبوونی ئاسایی (زیادە)
- What Is Programming?بەرنامەسازی چییە؟
- Welcome to Python: Install and Runبەخێربێیت بۆ Python: جێگیرکردن و جێبەجێکردن
- Input and Outputنێوخستە و دەرخستە
- Making Decisions: if, elif, elseبڕیاردان:
if،elifوelse - Working with Stringsکارکردن لەگەڵ زنجیرەنووسەکان
- Removing Items, Joining and Comparing Listsلابردنی دانەکان، پێکەوەلکاندن و بەراوردکردنی لیستەکان
- Two-Dimensional Listsلیستە دووڕەهەندەکان
- Moving in a File and Saving Python Objectsجووڵە لەناو فایلێکدا و هەڵگرتنی ئۆبجێکتەکانی Python
- The switch Statementڕستەی switch
- Operatorsکارپێکەرەکان
- Form Handling with GET and POSTمامەڵەکردن لەگەڵ فۆرم بە GET و POST
- Better SELECT Queries: Conditions, Ranges, Lists, Patterns and NULLباشترکردنی فەرمانی SELECT: مەرجەکان، ماوەکان، لیست، شێوازی دەق و NULL
- Securing Data in PHP and MySQLپاراستنی دراوە لە PHP و MySQL
- Sessionsسێشنەکان
- Database Users and Database Languagesبەکارهێنەرەکانی بنکەدراوە و زمانەکانی بنکەدراوە
- Relational Algebra and Relational Calculusجەبری پەیوەندیدار و ژمێرکاریی پەیوەندیدار
- Meet Dartناسینی Dart
- Dart Basics: Variables, Types and Control Flowبنەماکانی Dart: گۆڕاوەکان، جۆرەکان و ڕێڕەوی کۆنترۆڵ
- Dart Classes, Inheritance and Mixinsکلاسەکان، بۆماوە و میکسینەکان لە Dartـدا
- Container: Size, Padding, Margin and AlignmentContainer: قەبارە، بۆشایی ناوەوە، پەراوێز و ڕێکخستنی شوێن
- Navigation: Moving Between Screensڕێنیشاندان: جووڵان لە نێوان شاشەکاندا
- Saving Data on the Deviceپاشەکەوتکردنی دراوە لەسەر ئامێرەکە
- FutureProvider and StreamProviderFutureProvider و StreamProvider
- ProxyProvider and ChangeNotifierProxyProviderProxyProvider و ChangeNotifierProxyProvider
- Depth-Limited, Uniform-Cost, Iterative Deepening and Bidirectional Searchگەڕانی قووڵایی سنووردار، گەڕانی کەمترین کۆست، گەڕانی قووڵکردنەوەی پلەبەپلە و گەڕانی دووئاڕاستە
- Heuristics and Greedy Best-First Searchپێوەرەکان و گەڕانی چاوچنۆکانە