[{"data":1,"prerenderedAt":1716},["ShallowReactive",2],{"content-all-\u002Fphp\u002Fphp-fundamental\u002Ffunctions":3,"related-\u002Fphp\u002Fphp-fundamental\u002Ffunctions":1444,"sidebar-content":1673},[4],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"tags":11,"date":15,"weight":16,"body":17,"_type":1438,"_id":1439,"_source":1440,"_file":1441,"_stem":1442,"_extension":1443},"\u002Fphp\u002Fphp-fundamental\u002Ffunctions","php-fundamental",false,"","PHP Functions","Essential PHP functions and their usage",[12,13,14],"php","backend","functions","2026-05-30",11,{"type":18,"children":19,"toc":1431},"root",[20,28,43,159,164,261,266,357,370,474,479,633,638,644,649,816,822,827,925,931,936,1021,1027,1032,1420,1425],{"type":21,"tag":22,"props":23,"children":24},"element","h2",{"id":14},[25],{"type":26,"value":27},"text","Functions",{"type":21,"tag":29,"props":30,"children":31},"p",{},[32,34,41],{"type":26,"value":33},"In PHP, a function is a block of code that can be reused to perform a specific task. Functions can take parameters, return values, and be called from anywhere in the code. They are defined using the ",{"type":21,"tag":35,"props":36,"children":38},"code",{"className":37},[],[39],{"type":26,"value":40},"function",{"type":26,"value":42}," keyword.",{"type":21,"tag":44,"props":45,"children":48},"pre",{"className":46,"code":47,"language":12,"meta":8,"style":8},"language-php shiki shiki-themes github-light github-dark","function greet($name) {\n    return \"Hello, \" . $name . \"!\";\n}\necho greet(\"John\"); \u002F\u002F Outputs: Hello, John!\n",[49],{"type":21,"tag":35,"props":50,"children":51},{"__ignoreMap":8},[52,75,115,124],{"type":21,"tag":53,"props":54,"children":57},"span",{"class":55,"line":56},"line",1,[58,63,69],{"type":21,"tag":53,"props":59,"children":61},{"style":60},"--shiki-default:#D73A49;--shiki-dark:#F97583",[62],{"type":26,"value":40},{"type":21,"tag":53,"props":64,"children":66},{"style":65},"--shiki-default:#6F42C1;--shiki-dark:#B392F0",[67],{"type":26,"value":68}," greet",{"type":21,"tag":53,"props":70,"children":72},{"style":71},"--shiki-default:#24292E;--shiki-dark:#E1E4E8",[73],{"type":26,"value":74},"($name) {\n",{"type":21,"tag":53,"props":76,"children":78},{"class":55,"line":77},2,[79,84,90,95,100,105,110],{"type":21,"tag":53,"props":80,"children":81},{"style":60},[82],{"type":26,"value":83},"    return",{"type":21,"tag":53,"props":85,"children":87},{"style":86},"--shiki-default:#032F62;--shiki-dark:#9ECBFF",[88],{"type":26,"value":89}," \"Hello, \"",{"type":21,"tag":53,"props":91,"children":92},{"style":60},[93],{"type":26,"value":94}," .",{"type":21,"tag":53,"props":96,"children":97},{"style":71},[98],{"type":26,"value":99}," $name ",{"type":21,"tag":53,"props":101,"children":102},{"style":60},[103],{"type":26,"value":104},".",{"type":21,"tag":53,"props":106,"children":107},{"style":86},[108],{"type":26,"value":109}," \"!\"",{"type":21,"tag":53,"props":111,"children":112},{"style":71},[113],{"type":26,"value":114},";\n",{"type":21,"tag":53,"props":116,"children":118},{"class":55,"line":117},3,[119],{"type":21,"tag":53,"props":120,"children":121},{"style":71},[122],{"type":26,"value":123},"}\n",{"type":21,"tag":53,"props":125,"children":127},{"class":55,"line":126},4,[128,134,138,143,148,153],{"type":21,"tag":53,"props":129,"children":131},{"style":130},"--shiki-default:#005CC5;--shiki-dark:#79B8FF",[132],{"type":26,"value":133},"echo",{"type":21,"tag":53,"props":135,"children":136},{"style":65},[137],{"type":26,"value":68},{"type":21,"tag":53,"props":139,"children":140},{"style":71},[141],{"type":26,"value":142},"(",{"type":21,"tag":53,"props":144,"children":145},{"style":86},[146],{"type":26,"value":147},"\"John\"",{"type":21,"tag":53,"props":149,"children":150},{"style":71},[151],{"type":26,"value":152},"); ",{"type":21,"tag":53,"props":154,"children":156},{"style":155},"--shiki-default:#6A737D;--shiki-dark:#6A737D",[157],{"type":26,"value":158},"\u002F\u002F Outputs: Hello, John!\n",{"type":21,"tag":29,"props":160,"children":161},{},[162],{"type":26,"value":163},"Functions can also have default parameter values, which are used if no argument is provided when the function is called.",{"type":21,"tag":44,"props":165,"children":167},{"className":46,"code":166,"language":12,"meta":8,"style":8},"function greet($name = \"Guest\") {\n    return \"Hello, \" . $name . \"!\";\n}\necho greet(); \u002F\u002F Outputs: Hello, Guest!\n",[168],{"type":21,"tag":35,"props":169,"children":170},{"__ignoreMap":8},[171,202,233,240],{"type":21,"tag":53,"props":172,"children":173},{"class":55,"line":56},[174,178,182,187,192,197],{"type":21,"tag":53,"props":175,"children":176},{"style":60},[177],{"type":26,"value":40},{"type":21,"tag":53,"props":179,"children":180},{"style":65},[181],{"type":26,"value":68},{"type":21,"tag":53,"props":183,"children":184},{"style":71},[185],{"type":26,"value":186},"($name ",{"type":21,"tag":53,"props":188,"children":189},{"style":60},[190],{"type":26,"value":191},"=",{"type":21,"tag":53,"props":193,"children":194},{"style":86},[195],{"type":26,"value":196}," \"Guest\"",{"type":21,"tag":53,"props":198,"children":199},{"style":71},[200],{"type":26,"value":201},") {\n",{"type":21,"tag":53,"props":203,"children":204},{"class":55,"line":77},[205,209,213,217,221,225,229],{"type":21,"tag":53,"props":206,"children":207},{"style":60},[208],{"type":26,"value":83},{"type":21,"tag":53,"props":210,"children":211},{"style":86},[212],{"type":26,"value":89},{"type":21,"tag":53,"props":214,"children":215},{"style":60},[216],{"type":26,"value":94},{"type":21,"tag":53,"props":218,"children":219},{"style":71},[220],{"type":26,"value":99},{"type":21,"tag":53,"props":222,"children":223},{"style":60},[224],{"type":26,"value":104},{"type":21,"tag":53,"props":226,"children":227},{"style":86},[228],{"type":26,"value":109},{"type":21,"tag":53,"props":230,"children":231},{"style":71},[232],{"type":26,"value":114},{"type":21,"tag":53,"props":234,"children":235},{"class":55,"line":117},[236],{"type":21,"tag":53,"props":237,"children":238},{"style":71},[239],{"type":26,"value":123},{"type":21,"tag":53,"props":241,"children":242},{"class":55,"line":126},[243,247,251,256],{"type":21,"tag":53,"props":244,"children":245},{"style":130},[246],{"type":26,"value":133},{"type":21,"tag":53,"props":248,"children":249},{"style":65},[250],{"type":26,"value":68},{"type":21,"tag":53,"props":252,"children":253},{"style":71},[254],{"type":26,"value":255},"(); ",{"type":21,"tag":53,"props":257,"children":258},{"style":155},[259],{"type":26,"value":260},"\u002F\u002F Outputs: Hello, Guest!\n",{"type":21,"tag":29,"props":262,"children":263},{},[264],{"type":26,"value":265},"Functions can also be defined as anonymous functions (also known as closures) and assigned to variables.",{"type":21,"tag":44,"props":267,"children":269},{"className":46,"code":268,"language":12,"meta":8,"style":8},"$greet = function($name) {\n    return \"Hello, \" . $name . \"!\";\n};\necho $greet(\"John\"); \u002F\u002F Outputs: Hello, John!\n",[270],{"type":21,"tag":35,"props":271,"children":272},{"__ignoreMap":8},[273,294,325,333],{"type":21,"tag":53,"props":274,"children":275},{"class":55,"line":56},[276,281,285,290],{"type":21,"tag":53,"props":277,"children":278},{"style":71},[279],{"type":26,"value":280},"$greet ",{"type":21,"tag":53,"props":282,"children":283},{"style":60},[284],{"type":26,"value":191},{"type":21,"tag":53,"props":286,"children":287},{"style":60},[288],{"type":26,"value":289}," function",{"type":21,"tag":53,"props":291,"children":292},{"style":71},[293],{"type":26,"value":74},{"type":21,"tag":53,"props":295,"children":296},{"class":55,"line":77},[297,301,305,309,313,317,321],{"type":21,"tag":53,"props":298,"children":299},{"style":60},[300],{"type":26,"value":83},{"type":21,"tag":53,"props":302,"children":303},{"style":86},[304],{"type":26,"value":89},{"type":21,"tag":53,"props":306,"children":307},{"style":60},[308],{"type":26,"value":94},{"type":21,"tag":53,"props":310,"children":311},{"style":71},[312],{"type":26,"value":99},{"type":21,"tag":53,"props":314,"children":315},{"style":60},[316],{"type":26,"value":104},{"type":21,"tag":53,"props":318,"children":319},{"style":86},[320],{"type":26,"value":109},{"type":21,"tag":53,"props":322,"children":323},{"style":71},[324],{"type":26,"value":114},{"type":21,"tag":53,"props":326,"children":327},{"class":55,"line":117},[328],{"type":21,"tag":53,"props":329,"children":330},{"style":71},[331],{"type":26,"value":332},"};\n",{"type":21,"tag":53,"props":334,"children":335},{"class":55,"line":126},[336,340,345,349,353],{"type":21,"tag":53,"props":337,"children":338},{"style":130},[339],{"type":26,"value":133},{"type":21,"tag":53,"props":341,"children":342},{"style":71},[343],{"type":26,"value":344}," $greet(",{"type":21,"tag":53,"props":346,"children":347},{"style":86},[348],{"type":26,"value":147},{"type":21,"tag":53,"props":350,"children":351},{"style":71},[352],{"type":26,"value":152},{"type":21,"tag":53,"props":354,"children":355},{"style":155},[356],{"type":26,"value":158},{"type":21,"tag":29,"props":358,"children":359},{},[360,362,368],{"type":26,"value":361},"PHP also supports variable-length argument lists using the ",{"type":21,"tag":35,"props":363,"children":365},{"className":364},[],[366],{"type":26,"value":367},"...",{"type":26,"value":369}," operator, allowing you to pass an arbitrary number of arguments to a function.",{"type":21,"tag":44,"props":371,"children":373},{"className":46,"code":372,"language":12,"meta":8,"style":8},"function sum(...$numbers) {\n    return array_sum($numbers);\n}\necho sum(1, 2, 3); \u002F\u002F Outputs: 6\n",[374],{"type":21,"tag":35,"props":375,"children":376},{"__ignoreMap":8},[377,402,419,426],{"type":21,"tag":53,"props":378,"children":379},{"class":55,"line":56},[380,384,389,393,397],{"type":21,"tag":53,"props":381,"children":382},{"style":60},[383],{"type":26,"value":40},{"type":21,"tag":53,"props":385,"children":386},{"style":65},[387],{"type":26,"value":388}," sum",{"type":21,"tag":53,"props":390,"children":391},{"style":71},[392],{"type":26,"value":142},{"type":21,"tag":53,"props":394,"children":395},{"style":60},[396],{"type":26,"value":367},{"type":21,"tag":53,"props":398,"children":399},{"style":71},[400],{"type":26,"value":401},"$numbers) {\n",{"type":21,"tag":53,"props":403,"children":404},{"class":55,"line":77},[405,409,414],{"type":21,"tag":53,"props":406,"children":407},{"style":60},[408],{"type":26,"value":83},{"type":21,"tag":53,"props":410,"children":411},{"style":130},[412],{"type":26,"value":413}," array_sum",{"type":21,"tag":53,"props":415,"children":416},{"style":71},[417],{"type":26,"value":418},"($numbers);\n",{"type":21,"tag":53,"props":420,"children":421},{"class":55,"line":117},[422],{"type":21,"tag":53,"props":423,"children":424},{"style":71},[425],{"type":26,"value":123},{"type":21,"tag":53,"props":427,"children":428},{"class":55,"line":126},[429,433,437,441,446,451,456,460,465,469],{"type":21,"tag":53,"props":430,"children":431},{"style":130},[432],{"type":26,"value":133},{"type":21,"tag":53,"props":434,"children":435},{"style":65},[436],{"type":26,"value":388},{"type":21,"tag":53,"props":438,"children":439},{"style":71},[440],{"type":26,"value":142},{"type":21,"tag":53,"props":442,"children":443},{"style":130},[444],{"type":26,"value":445},"1",{"type":21,"tag":53,"props":447,"children":448},{"style":71},[449],{"type":26,"value":450},", ",{"type":21,"tag":53,"props":452,"children":453},{"style":130},[454],{"type":26,"value":455},"2",{"type":21,"tag":53,"props":457,"children":458},{"style":71},[459],{"type":26,"value":450},{"type":21,"tag":53,"props":461,"children":462},{"style":130},[463],{"type":26,"value":464},"3",{"type":21,"tag":53,"props":466,"children":467},{"style":71},[468],{"type":26,"value":152},{"type":21,"tag":53,"props":470,"children":471},{"style":155},[472],{"type":26,"value":473},"\u002F\u002F Outputs: 6\n",{"type":21,"tag":29,"props":475,"children":476},{},[477],{"type":26,"value":478},"Functions can also be recursive, meaning they can call themselves to solve a problem.",{"type":21,"tag":44,"props":480,"children":482},{"className":46,"code":481,"language":12,"meta":8,"style":8},"function factorial($n) {\n    if ($n \u003C= 1) {\n        return 1;\n    }\n    return $n * factorial($n - 1);\n}\necho factorial(5); \u002F\u002F Outputs: 120\n",[483],{"type":21,"tag":35,"props":484,"children":485},{"__ignoreMap":8},[486,503,530,546,554,595,603],{"type":21,"tag":53,"props":487,"children":488},{"class":55,"line":56},[489,493,498],{"type":21,"tag":53,"props":490,"children":491},{"style":60},[492],{"type":26,"value":40},{"type":21,"tag":53,"props":494,"children":495},{"style":65},[496],{"type":26,"value":497}," factorial",{"type":21,"tag":53,"props":499,"children":500},{"style":71},[501],{"type":26,"value":502},"($n) {\n",{"type":21,"tag":53,"props":504,"children":505},{"class":55,"line":77},[506,511,516,521,526],{"type":21,"tag":53,"props":507,"children":508},{"style":60},[509],{"type":26,"value":510},"    if",{"type":21,"tag":53,"props":512,"children":513},{"style":71},[514],{"type":26,"value":515}," ($n ",{"type":21,"tag":53,"props":517,"children":518},{"style":60},[519],{"type":26,"value":520},"\u003C=",{"type":21,"tag":53,"props":522,"children":523},{"style":130},[524],{"type":26,"value":525}," 1",{"type":21,"tag":53,"props":527,"children":528},{"style":71},[529],{"type":26,"value":201},{"type":21,"tag":53,"props":531,"children":532},{"class":55,"line":117},[533,538,542],{"type":21,"tag":53,"props":534,"children":535},{"style":60},[536],{"type":26,"value":537},"        return",{"type":21,"tag":53,"props":539,"children":540},{"style":130},[541],{"type":26,"value":525},{"type":21,"tag":53,"props":543,"children":544},{"style":71},[545],{"type":26,"value":114},{"type":21,"tag":53,"props":547,"children":548},{"class":55,"line":126},[549],{"type":21,"tag":53,"props":550,"children":551},{"style":71},[552],{"type":26,"value":553},"    }\n",{"type":21,"tag":53,"props":555,"children":557},{"class":55,"line":556},5,[558,562,567,572,576,581,586,590],{"type":21,"tag":53,"props":559,"children":560},{"style":60},[561],{"type":26,"value":83},{"type":21,"tag":53,"props":563,"children":564},{"style":71},[565],{"type":26,"value":566}," $n ",{"type":21,"tag":53,"props":568,"children":569},{"style":60},[570],{"type":26,"value":571},"*",{"type":21,"tag":53,"props":573,"children":574},{"style":65},[575],{"type":26,"value":497},{"type":21,"tag":53,"props":577,"children":578},{"style":71},[579],{"type":26,"value":580},"($n ",{"type":21,"tag":53,"props":582,"children":583},{"style":60},[584],{"type":26,"value":585},"-",{"type":21,"tag":53,"props":587,"children":588},{"style":130},[589],{"type":26,"value":525},{"type":21,"tag":53,"props":591,"children":592},{"style":71},[593],{"type":26,"value":594},");\n",{"type":21,"tag":53,"props":596,"children":598},{"class":55,"line":597},6,[599],{"type":21,"tag":53,"props":600,"children":601},{"style":71},[602],{"type":26,"value":123},{"type":21,"tag":53,"props":604,"children":606},{"class":55,"line":605},7,[607,611,615,619,624,628],{"type":21,"tag":53,"props":608,"children":609},{"style":130},[610],{"type":26,"value":133},{"type":21,"tag":53,"props":612,"children":613},{"style":65},[614],{"type":26,"value":497},{"type":21,"tag":53,"props":616,"children":617},{"style":71},[618],{"type":26,"value":142},{"type":21,"tag":53,"props":620,"children":621},{"style":130},[622],{"type":26,"value":623},"5",{"type":21,"tag":53,"props":625,"children":626},{"style":71},[627],{"type":26,"value":152},{"type":21,"tag":53,"props":629,"children":630},{"style":155},[631],{"type":26,"value":632},"\u002F\u002F Outputs: 120\n",{"type":21,"tag":29,"props":634,"children":635},{},[636],{"type":26,"value":637},"PHP has many built-in functions for various tasks, such as string manipulation, array handling, and more. You can also create your own custom functions to suit your specific needs. Understanding how to define and use functions is essential for writing clean, efficient, and maintainable PHP code.",{"type":21,"tag":22,"props":639,"children":641},{"id":640},"built-in-functions",[642],{"type":26,"value":643},"Built-in Functions",{"type":21,"tag":29,"props":645,"children":646},{},[647],{"type":26,"value":648},"PHP provides a wide range of built-in functions that can be used for various purposes. Some common categories of built-in functions include:",{"type":21,"tag":650,"props":651,"children":652},"ul",{},[653,681,707,733,759,785,811],{"type":21,"tag":654,"props":655,"children":656},"li",{},[657,659,665,666,672,673,679],{"type":26,"value":658},"String functions: ",{"type":21,"tag":35,"props":660,"children":662},{"className":661},[],[663],{"type":26,"value":664},"strlen()",{"type":26,"value":450},{"type":21,"tag":35,"props":667,"children":669},{"className":668},[],[670],{"type":26,"value":671},"str_replace()",{"type":26,"value":450},{"type":21,"tag":35,"props":674,"children":676},{"className":675},[],[677],{"type":26,"value":678},"substr()",{"type":26,"value":680},", etc.",{"type":21,"tag":654,"props":682,"children":683},{},[684,686,692,693,699,700,706],{"type":26,"value":685},"Array functions: ",{"type":21,"tag":35,"props":687,"children":689},{"className":688},[],[690],{"type":26,"value":691},"array_push()",{"type":26,"value":450},{"type":21,"tag":35,"props":694,"children":696},{"className":695},[],[697],{"type":26,"value":698},"array_pop()",{"type":26,"value":450},{"type":21,"tag":35,"props":701,"children":703},{"className":702},[],[704],{"type":26,"value":705},"array_merge()",{"type":26,"value":680},{"type":21,"tag":654,"props":708,"children":709},{},[710,712,718,719,725,726,732],{"type":26,"value":711},"Date and time functions: ",{"type":21,"tag":35,"props":713,"children":715},{"className":714},[],[716],{"type":26,"value":717},"date()",{"type":26,"value":450},{"type":21,"tag":35,"props":720,"children":722},{"className":721},[],[723],{"type":26,"value":724},"time()",{"type":26,"value":450},{"type":21,"tag":35,"props":727,"children":729},{"className":728},[],[730],{"type":26,"value":731},"strtotime()",{"type":26,"value":680},{"type":21,"tag":654,"props":734,"children":735},{},[736,738,744,745,751,752,758],{"type":26,"value":737},"Math functions: ",{"type":21,"tag":35,"props":739,"children":741},{"className":740},[],[742],{"type":26,"value":743},"abs()",{"type":26,"value":450},{"type":21,"tag":35,"props":746,"children":748},{"className":747},[],[749],{"type":26,"value":750},"round()",{"type":26,"value":450},{"type":21,"tag":35,"props":753,"children":755},{"className":754},[],[756],{"type":26,"value":757},"rand()",{"type":26,"value":680},{"type":21,"tag":654,"props":760,"children":761},{},[762,764,770,771,777,778,784],{"type":26,"value":763},"File handling functions: ",{"type":21,"tag":35,"props":765,"children":767},{"className":766},[],[768],{"type":26,"value":769},"fopen()",{"type":26,"value":450},{"type":21,"tag":35,"props":772,"children":774},{"className":773},[],[775],{"type":26,"value":776},"fread()",{"type":26,"value":450},{"type":21,"tag":35,"props":779,"children":781},{"className":780},[],[782],{"type":26,"value":783},"fwrite()",{"type":26,"value":680},{"type":21,"tag":654,"props":786,"children":787},{},[788,790,796,797,803,804,810],{"type":26,"value":789},"Database functions: ",{"type":21,"tag":35,"props":791,"children":793},{"className":792},[],[794],{"type":26,"value":795},"mysqli_connect()",{"type":26,"value":450},{"type":21,"tag":35,"props":798,"children":800},{"className":799},[],[801],{"type":26,"value":802},"mysqli_query()",{"type":26,"value":450},{"type":21,"tag":35,"props":805,"children":807},{"className":806},[],[808],{"type":26,"value":809},"PDO",{"type":26,"value":680},{"type":21,"tag":654,"props":812,"children":813},{},[814],{"type":26,"value":815},"And many more! You can refer to the official PHP documentation for a comprehensive list of built-in functions and their usage.",{"type":21,"tag":22,"props":817,"children":819},{"id":818},"user-defined-functions",[820],{"type":26,"value":821},"User-defined Functions",{"type":21,"tag":29,"props":823,"children":824},{},[825],{"type":26,"value":826},"In addition to built-in functions, you can create your own user-defined functions in PHP. This allows you to encapsulate reusable code and improve the organization of your application. User-defined functions can be defined anywhere in your code, but it's common practice to define them at the beginning of your script or in separate files for better maintainability.",{"type":21,"tag":44,"props":828,"children":830},{"className":46,"code":829,"language":12,"meta":8,"style":8},"function calculateArea($radius) {\n    return pi() * pow($radius, 2);\n}\necho calculateArea(5); \u002F\u002F Outputs: 78.539816339745\n",[831],{"type":21,"tag":35,"props":832,"children":833},{"__ignoreMap":8},[834,851,890,897],{"type":21,"tag":53,"props":835,"children":836},{"class":55,"line":56},[837,841,846],{"type":21,"tag":53,"props":838,"children":839},{"style":60},[840],{"type":26,"value":40},{"type":21,"tag":53,"props":842,"children":843},{"style":65},[844],{"type":26,"value":845}," calculateArea",{"type":21,"tag":53,"props":847,"children":848},{"style":71},[849],{"type":26,"value":850},"($radius) {\n",{"type":21,"tag":53,"props":852,"children":853},{"class":55,"line":77},[854,858,863,868,872,877,882,886],{"type":21,"tag":53,"props":855,"children":856},{"style":60},[857],{"type":26,"value":83},{"type":21,"tag":53,"props":859,"children":860},{"style":130},[861],{"type":26,"value":862}," pi",{"type":21,"tag":53,"props":864,"children":865},{"style":71},[866],{"type":26,"value":867},"() ",{"type":21,"tag":53,"props":869,"children":870},{"style":60},[871],{"type":26,"value":571},{"type":21,"tag":53,"props":873,"children":874},{"style":130},[875],{"type":26,"value":876}," pow",{"type":21,"tag":53,"props":878,"children":879},{"style":71},[880],{"type":26,"value":881},"($radius, ",{"type":21,"tag":53,"props":883,"children":884},{"style":130},[885],{"type":26,"value":455},{"type":21,"tag":53,"props":887,"children":888},{"style":71},[889],{"type":26,"value":594},{"type":21,"tag":53,"props":891,"children":892},{"class":55,"line":117},[893],{"type":21,"tag":53,"props":894,"children":895},{"style":71},[896],{"type":26,"value":123},{"type":21,"tag":53,"props":898,"children":899},{"class":55,"line":126},[900,904,908,912,916,920],{"type":21,"tag":53,"props":901,"children":902},{"style":130},[903],{"type":26,"value":133},{"type":21,"tag":53,"props":905,"children":906},{"style":65},[907],{"type":26,"value":845},{"type":21,"tag":53,"props":909,"children":910},{"style":71},[911],{"type":26,"value":142},{"type":21,"tag":53,"props":913,"children":914},{"style":130},[915],{"type":26,"value":623},{"type":21,"tag":53,"props":917,"children":918},{"style":71},[919],{"type":26,"value":152},{"type":21,"tag":53,"props":921,"children":922},{"style":155},[923],{"type":26,"value":924},"\u002F\u002F Outputs: 78.539816339745\n",{"type":21,"tag":22,"props":926,"children":928},{"id":927},"variable-functions",[929],{"type":26,"value":930},"Variable Functions",{"type":21,"tag":29,"props":932,"children":933},{},[934],{"type":26,"value":935},"In PHP, you can also use variable functions, which allow you to call a function using a variable that contains the function name. This can be useful for dynamic function calls.",{"type":21,"tag":44,"props":937,"children":939},{"className":46,"code":938,"language":12,"meta":8,"style":8},"function sayHello() {\n    return \"Hello!\";\n}\n$functionName = \"sayHello\";\necho $functionName(); \u002F\u002F Outputs: Hello!\n",[940],{"type":21,"tag":35,"props":941,"children":942},{"__ignoreMap":8},[943,960,976,983,1004],{"type":21,"tag":53,"props":944,"children":945},{"class":55,"line":56},[946,950,955],{"type":21,"tag":53,"props":947,"children":948},{"style":60},[949],{"type":26,"value":40},{"type":21,"tag":53,"props":951,"children":952},{"style":65},[953],{"type":26,"value":954}," sayHello",{"type":21,"tag":53,"props":956,"children":957},{"style":71},[958],{"type":26,"value":959},"() {\n",{"type":21,"tag":53,"props":961,"children":962},{"class":55,"line":77},[963,967,972],{"type":21,"tag":53,"props":964,"children":965},{"style":60},[966],{"type":26,"value":83},{"type":21,"tag":53,"props":968,"children":969},{"style":86},[970],{"type":26,"value":971}," \"Hello!\"",{"type":21,"tag":53,"props":973,"children":974},{"style":71},[975],{"type":26,"value":114},{"type":21,"tag":53,"props":977,"children":978},{"class":55,"line":117},[979],{"type":21,"tag":53,"props":980,"children":981},{"style":71},[982],{"type":26,"value":123},{"type":21,"tag":53,"props":984,"children":985},{"class":55,"line":126},[986,991,995,1000],{"type":21,"tag":53,"props":987,"children":988},{"style":71},[989],{"type":26,"value":990},"$functionName ",{"type":21,"tag":53,"props":992,"children":993},{"style":60},[994],{"type":26,"value":191},{"type":21,"tag":53,"props":996,"children":997},{"style":86},[998],{"type":26,"value":999}," \"sayHello\"",{"type":21,"tag":53,"props":1001,"children":1002},{"style":71},[1003],{"type":26,"value":114},{"type":21,"tag":53,"props":1005,"children":1006},{"class":55,"line":556},[1007,1011,1016],{"type":21,"tag":53,"props":1008,"children":1009},{"style":130},[1010],{"type":26,"value":133},{"type":21,"tag":53,"props":1012,"children":1013},{"style":71},[1014],{"type":26,"value":1015}," $functionName(); ",{"type":21,"tag":53,"props":1017,"children":1018},{"style":155},[1019],{"type":26,"value":1020},"\u002F\u002F Outputs: Hello!\n",{"type":21,"tag":22,"props":1022,"children":1024},{"id":1023},"operators-in-functions",[1025],{"type":26,"value":1026},"Operators in Functions",{"type":21,"tag":29,"props":1028,"children":1029},{},[1030],{"type":26,"value":1031},"Operators can be used within functions to perform various operations. For example, you can use arithmetic operators to perform calculations, comparison operators to compare values, and logical operators to combine conditions.",{"type":21,"tag":44,"props":1033,"children":1035},{"className":46,"code":1034,"language":12,"meta":8,"style":8},"function calculate($a, $b) {\n    $sum = $a + $b; \u002F\u002F Using arithmetic operator\n    $isEqual = ($a == $b); \u002F\u002F Using comparison operator\n    $isGreater = ($a > $b); \u002F\u002F Using comparison operator\n    return [\n        'sum' => $sum,\n        'isEqual' => $isEqual,\n        'isGreater' => $isGreater\n    ];\n}\n$result = calculate(5, 3);\necho \"Sum: \" . $result['sum']; \u002F\u002F Outputs: Sum: 8\necho \"Is Equal: \" . ($result['isEqual'] ? \"Yes\" : \"No\"); \u002F\u002F Outputs: Is Equal: No\necho \"Is Greater: \" . ($result['isGreater'] ? \"Yes\" : \"No\"); \u002F\u002F Outputs: Is Greater: Yes\n",[1036],{"type":21,"tag":35,"props":1037,"children":1038},{"__ignoreMap":8},[1039,1056,1088,1120,1149,1161,1179,1196,1214,1223,1231,1267,1304,1365],{"type":21,"tag":53,"props":1040,"children":1041},{"class":55,"line":56},[1042,1046,1051],{"type":21,"tag":53,"props":1043,"children":1044},{"style":60},[1045],{"type":26,"value":40},{"type":21,"tag":53,"props":1047,"children":1048},{"style":65},[1049],{"type":26,"value":1050}," calculate",{"type":21,"tag":53,"props":1052,"children":1053},{"style":71},[1054],{"type":26,"value":1055},"($a, $b) {\n",{"type":21,"tag":53,"props":1057,"children":1058},{"class":55,"line":77},[1059,1064,1068,1073,1078,1083],{"type":21,"tag":53,"props":1060,"children":1061},{"style":71},[1062],{"type":26,"value":1063},"    $sum ",{"type":21,"tag":53,"props":1065,"children":1066},{"style":60},[1067],{"type":26,"value":191},{"type":21,"tag":53,"props":1069,"children":1070},{"style":71},[1071],{"type":26,"value":1072}," $a ",{"type":21,"tag":53,"props":1074,"children":1075},{"style":60},[1076],{"type":26,"value":1077},"+",{"type":21,"tag":53,"props":1079,"children":1080},{"style":71},[1081],{"type":26,"value":1082}," $b; ",{"type":21,"tag":53,"props":1084,"children":1085},{"style":155},[1086],{"type":26,"value":1087},"\u002F\u002F Using arithmetic operator\n",{"type":21,"tag":53,"props":1089,"children":1090},{"class":55,"line":117},[1091,1096,1100,1105,1110,1115],{"type":21,"tag":53,"props":1092,"children":1093},{"style":71},[1094],{"type":26,"value":1095},"    $isEqual ",{"type":21,"tag":53,"props":1097,"children":1098},{"style":60},[1099],{"type":26,"value":191},{"type":21,"tag":53,"props":1101,"children":1102},{"style":71},[1103],{"type":26,"value":1104}," ($a ",{"type":21,"tag":53,"props":1106,"children":1107},{"style":60},[1108],{"type":26,"value":1109},"==",{"type":21,"tag":53,"props":1111,"children":1112},{"style":71},[1113],{"type":26,"value":1114}," $b); ",{"type":21,"tag":53,"props":1116,"children":1117},{"style":155},[1118],{"type":26,"value":1119},"\u002F\u002F Using comparison operator\n",{"type":21,"tag":53,"props":1121,"children":1122},{"class":55,"line":126},[1123,1128,1132,1136,1141,1145],{"type":21,"tag":53,"props":1124,"children":1125},{"style":71},[1126],{"type":26,"value":1127},"    $isGreater ",{"type":21,"tag":53,"props":1129,"children":1130},{"style":60},[1131],{"type":26,"value":191},{"type":21,"tag":53,"props":1133,"children":1134},{"style":71},[1135],{"type":26,"value":1104},{"type":21,"tag":53,"props":1137,"children":1138},{"style":60},[1139],{"type":26,"value":1140},">",{"type":21,"tag":53,"props":1142,"children":1143},{"style":71},[1144],{"type":26,"value":1114},{"type":21,"tag":53,"props":1146,"children":1147},{"style":155},[1148],{"type":26,"value":1119},{"type":21,"tag":53,"props":1150,"children":1151},{"class":55,"line":556},[1152,1156],{"type":21,"tag":53,"props":1153,"children":1154},{"style":60},[1155],{"type":26,"value":83},{"type":21,"tag":53,"props":1157,"children":1158},{"style":71},[1159],{"type":26,"value":1160}," [\n",{"type":21,"tag":53,"props":1162,"children":1163},{"class":55,"line":597},[1164,1169,1174],{"type":21,"tag":53,"props":1165,"children":1166},{"style":86},[1167],{"type":26,"value":1168},"        'sum'",{"type":21,"tag":53,"props":1170,"children":1171},{"style":60},[1172],{"type":26,"value":1173}," =>",{"type":21,"tag":53,"props":1175,"children":1176},{"style":71},[1177],{"type":26,"value":1178}," $sum,\n",{"type":21,"tag":53,"props":1180,"children":1181},{"class":55,"line":605},[1182,1187,1191],{"type":21,"tag":53,"props":1183,"children":1184},{"style":86},[1185],{"type":26,"value":1186},"        'isEqual'",{"type":21,"tag":53,"props":1188,"children":1189},{"style":60},[1190],{"type":26,"value":1173},{"type":21,"tag":53,"props":1192,"children":1193},{"style":71},[1194],{"type":26,"value":1195}," $isEqual,\n",{"type":21,"tag":53,"props":1197,"children":1199},{"class":55,"line":1198},8,[1200,1205,1209],{"type":21,"tag":53,"props":1201,"children":1202},{"style":86},[1203],{"type":26,"value":1204},"        'isGreater'",{"type":21,"tag":53,"props":1206,"children":1207},{"style":60},[1208],{"type":26,"value":1173},{"type":21,"tag":53,"props":1210,"children":1211},{"style":71},[1212],{"type":26,"value":1213}," $isGreater\n",{"type":21,"tag":53,"props":1215,"children":1217},{"class":55,"line":1216},9,[1218],{"type":21,"tag":53,"props":1219,"children":1220},{"style":71},[1221],{"type":26,"value":1222},"    ];\n",{"type":21,"tag":53,"props":1224,"children":1226},{"class":55,"line":1225},10,[1227],{"type":21,"tag":53,"props":1228,"children":1229},{"style":71},[1230],{"type":26,"value":123},{"type":21,"tag":53,"props":1232,"children":1233},{"class":55,"line":16},[1234,1239,1243,1247,1251,1255,1259,1263],{"type":21,"tag":53,"props":1235,"children":1236},{"style":71},[1237],{"type":26,"value":1238},"$result ",{"type":21,"tag":53,"props":1240,"children":1241},{"style":60},[1242],{"type":26,"value":191},{"type":21,"tag":53,"props":1244,"children":1245},{"style":65},[1246],{"type":26,"value":1050},{"type":21,"tag":53,"props":1248,"children":1249},{"style":71},[1250],{"type":26,"value":142},{"type":21,"tag":53,"props":1252,"children":1253},{"style":130},[1254],{"type":26,"value":623},{"type":21,"tag":53,"props":1256,"children":1257},{"style":71},[1258],{"type":26,"value":450},{"type":21,"tag":53,"props":1260,"children":1261},{"style":130},[1262],{"type":26,"value":464},{"type":21,"tag":53,"props":1264,"children":1265},{"style":71},[1266],{"type":26,"value":594},{"type":21,"tag":53,"props":1268,"children":1270},{"class":55,"line":1269},12,[1271,1275,1280,1284,1289,1294,1299],{"type":21,"tag":53,"props":1272,"children":1273},{"style":130},[1274],{"type":26,"value":133},{"type":21,"tag":53,"props":1276,"children":1277},{"style":86},[1278],{"type":26,"value":1279}," \"Sum: \"",{"type":21,"tag":53,"props":1281,"children":1282},{"style":60},[1283],{"type":26,"value":94},{"type":21,"tag":53,"props":1285,"children":1286},{"style":71},[1287],{"type":26,"value":1288}," $result[",{"type":21,"tag":53,"props":1290,"children":1291},{"style":86},[1292],{"type":26,"value":1293},"'sum'",{"type":21,"tag":53,"props":1295,"children":1296},{"style":71},[1297],{"type":26,"value":1298},"]; ",{"type":21,"tag":53,"props":1300,"children":1301},{"style":155},[1302],{"type":26,"value":1303},"\u002F\u002F Outputs: Sum: 8\n",{"type":21,"tag":53,"props":1305,"children":1307},{"class":55,"line":1306},13,[1308,1312,1317,1321,1326,1331,1336,1341,1346,1351,1356,1360],{"type":21,"tag":53,"props":1309,"children":1310},{"style":130},[1311],{"type":26,"value":133},{"type":21,"tag":53,"props":1313,"children":1314},{"style":86},[1315],{"type":26,"value":1316}," \"Is Equal: \"",{"type":21,"tag":53,"props":1318,"children":1319},{"style":60},[1320],{"type":26,"value":94},{"type":21,"tag":53,"props":1322,"children":1323},{"style":71},[1324],{"type":26,"value":1325}," ($result[",{"type":21,"tag":53,"props":1327,"children":1328},{"style":86},[1329],{"type":26,"value":1330},"'isEqual'",{"type":21,"tag":53,"props":1332,"children":1333},{"style":71},[1334],{"type":26,"value":1335},"] ",{"type":21,"tag":53,"props":1337,"children":1338},{"style":60},[1339],{"type":26,"value":1340},"?",{"type":21,"tag":53,"props":1342,"children":1343},{"style":86},[1344],{"type":26,"value":1345}," \"Yes\"",{"type":21,"tag":53,"props":1347,"children":1348},{"style":60},[1349],{"type":26,"value":1350}," :",{"type":21,"tag":53,"props":1352,"children":1353},{"style":86},[1354],{"type":26,"value":1355}," \"No\"",{"type":21,"tag":53,"props":1357,"children":1358},{"style":71},[1359],{"type":26,"value":152},{"type":21,"tag":53,"props":1361,"children":1362},{"style":155},[1363],{"type":26,"value":1364},"\u002F\u002F Outputs: Is Equal: No\n",{"type":21,"tag":53,"props":1366,"children":1368},{"class":55,"line":1367},14,[1369,1373,1378,1382,1386,1391,1395,1399,1403,1407,1411,1415],{"type":21,"tag":53,"props":1370,"children":1371},{"style":130},[1372],{"type":26,"value":133},{"type":21,"tag":53,"props":1374,"children":1375},{"style":86},[1376],{"type":26,"value":1377}," \"Is Greater: \"",{"type":21,"tag":53,"props":1379,"children":1380},{"style":60},[1381],{"type":26,"value":94},{"type":21,"tag":53,"props":1383,"children":1384},{"style":71},[1385],{"type":26,"value":1325},{"type":21,"tag":53,"props":1387,"children":1388},{"style":86},[1389],{"type":26,"value":1390},"'isGreater'",{"type":21,"tag":53,"props":1392,"children":1393},{"style":71},[1394],{"type":26,"value":1335},{"type":21,"tag":53,"props":1396,"children":1397},{"style":60},[1398],{"type":26,"value":1340},{"type":21,"tag":53,"props":1400,"children":1401},{"style":86},[1402],{"type":26,"value":1345},{"type":21,"tag":53,"props":1404,"children":1405},{"style":60},[1406],{"type":26,"value":1350},{"type":21,"tag":53,"props":1408,"children":1409},{"style":86},[1410],{"type":26,"value":1355},{"type":21,"tag":53,"props":1412,"children":1413},{"style":71},[1414],{"type":26,"value":152},{"type":21,"tag":53,"props":1416,"children":1417},{"style":155},[1418],{"type":26,"value":1419},"\u002F\u002F Outputs: Is Greater: Yes\n",{"type":21,"tag":29,"props":1421,"children":1422},{},[1423],{"type":26,"value":1424},"You can also use other types of operators, such as assignment operators, bitwise operators, and more, within your functions to perform various tasks. The choice of operators will depend on the specific logic you want to implement in your function.",{"type":21,"tag":1426,"props":1427,"children":1428},"style",{},[1429],{"type":26,"value":1430},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":8,"searchDepth":117,"depth":117,"links":1432},[1433,1434,1435,1436,1437],{"id":14,"depth":77,"text":27},{"id":640,"depth":77,"text":643},{"id":818,"depth":77,"text":821},{"id":927,"depth":77,"text":930},{"id":1023,"depth":77,"text":1026},"markdown","content:php:php-fundamental:functions.md","content","php\u002Fphp-fundamental\u002Ffunctions.md","php\u002Fphp-fundamental\u002Ffunctions","md",[1445,1453,1461,1466,1472,1481,1486,1491,1496,1501,1506,1515,1521,1526,1531,1536,1541,1546,1552,1560,1568,1573,1580,1585,1592,1598,1604,1612,1618,1625,1631,1637,1644,1656,1662,1667],{"_path":1446,"title":1447,"description":1448,"tags":1449,"date":1452},"\u002Fcpp","C++ \u002F CPP","C++ notes, snippets, and references",[1450,1451],"cpp","c++","2026-05-05",{"_path":1454,"title":1455,"description":1456,"tags":1457,"date":1460},"\u002Fdata-structure-algorithm\u002Farray-manipulation\u002Ffor-looping","For Looping in Python","Using for loops to manipulate arrays in Python.",[1458,13,1459],"python","arrays","2026-03-18",{"_path":1462,"title":1463,"description":1464,"tags":1465,"date":1460},"\u002Fdata-structure-algorithm\u002Farray-manipulation\u002Fwhile-looping","While Looping in Python","Using while loops to manipulate arrays in Python.",[1458,13,1459],{"_path":1467,"title":1468,"description":1469,"tags":1470,"date":1471},"\u002Fdata-structure-algorithm\u002Fassignments","Assignments","Assignments in Python for competitive programming.",[1458,13],"2026-04-10",{"_path":1473,"title":1474,"description":1475,"tags":1476,"date":1480},"\u002Fdata-structure-algorithm\u002Fbuzzword","Buzzword List DSA","Common terms and concepts in data structures and algorithms.",[1477,1478,1479],"dsa","algorithms","data-structures","2026-04-03",{"_path":1482,"title":1483,"description":1484,"tags":1485,"date":1471},"\u002Fdata-structure-algorithm\u002Fdata-type","Data Types","Data types in Python for competitive programming.",[1458,13],{"_path":1487,"title":1488,"description":1489,"tags":1490,"date":1471},"\u002Fdata-structure-algorithm\u002Fhash-map","Hash Map","Hash map implementation in Python for competitive programming.",[1458,13],{"_path":1492,"title":1493,"description":1494,"tags":1495,"date":1471},"\u002Fdata-structure-algorithm\u002Finput-output","Input and Output","Handling input and output in Python for competitive programming.",[1458,13],{"_path":1497,"title":1498,"description":1499,"tags":1500,"date":1460},"\u002Fdata-structure-algorithm\u002Fmath-library\u002Fsum","Sum Elements","Using for loops to sum elements in Python.",[1458,13,1459],{"_path":1502,"title":1503,"description":1504,"tags":1505,"date":1460},"\u002Fdata-structure-algorithm\u002Fmath-library\u002Fsummary","Summary","Summary of the math library in Python.",[1458,13,1459],{"_path":1507,"title":1508,"description":1509,"tags":1510,"date":1514},"\u002Fdocker\u002Fcheat-sheets","Docker Cheat Sheets","Cheat sheets for frequently used Docker commands and concepts",[1511,1512,1513],"docker","devops","infrastructure","2026-05-01",{"_path":1516,"title":1517,"description":1518,"tags":1519,"date":1520},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-container","Docker Container","Introduction to Docker containers and their usage",[1511,1512,1513],"2026-03-12",{"_path":1522,"title":1523,"description":1524,"tags":1525,"date":1520},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-execution","Docker Execution","Introduction to Docker execution and their usage",[1511,1512,1513],{"_path":1527,"title":1528,"description":1529,"tags":1530,"date":1520},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-image","Docker Image","Introduction to Docker images and their usage",[1511,1512,1513],{"_path":1532,"title":1533,"description":1534,"tags":1535,"date":1520},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-logging","Docker Logging","Introduction to Docker logging and their usage",[1511,1512,1513],{"_path":1537,"title":1538,"description":1539,"tags":1540,"date":1520},"\u002Fdocker\u002Fdocker-prerequisites\u002Fdocker-installation","Docker Installation","Introduction to Docker installation and their usage",[1511,1512,1513],{"_path":1542,"title":1543,"description":1544,"tags":1545,"date":1520},"\u002Fdocker\u002Fresources","Docker Resources","Collection of Docker resources for learning and reference",[1511,1512,1513],{"_path":1547,"title":1548,"description":1549,"tags":1550,"date":1452},"\u002Fjava","Java","Java notes, snippets, and references",[1551],"java",{"_path":1553,"title":1554,"description":1555,"tags":1556,"date":1520},"\u002Fjavascript\u002Fpromises","Promise Patterns","Common JavaScript promise patterns and async\u002Fawait usage",[1557,1558,1559],"javascript","frontend","async",{"_path":1561,"title":1562,"description":1563,"tags":1564,"date":1452},"\u002Fjenkins","Jenkins","Jenkins notes, snippets, and references",[1565,1566,1567],"jenkins","ci","cd",{"_path":1569,"title":1570,"description":1571,"tags":1572,"date":1460},"\u002Fphp\u002Farrays","PHP Array Functions","Essential PHP array functions and patterns",[12,13,1459],{"_path":1574,"title":1575,"description":1576,"tags":1577,"date":1579},"\u002Fphp\u002Fpatterns\u002Fsingleton","Singleton Pattern","Implementing the singleton pattern in PHP",[12,1578,13],"patterns","2026-03-13",{"_path":1581,"title":1582,"description":1583,"tags":1584,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Farray-map","PHP Array and Map","Essential PHP array and map functions and their usage",[12,13,1459],{"_path":1586,"title":1587,"description":1588,"tags":1589,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Fcasting-convertions","PHP Casting and Conversions","Learning about PHP casting and conversions",[12,13,1590,1591],"casting","conversions",{"_path":1593,"title":1594,"description":1595,"tags":1596,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Fcomments","PHP Comments","Essential PHP comment operations",[12,13,1597],"comments",{"_path":1599,"title":1600,"description":1601,"tags":1602,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Fdatatypes","PHP Data Types","Essential PHP data types and their usage",[12,13,1603],"data types",{"_path":1605,"title":1606,"description":1607,"tags":1608,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Fexpression-statement-block","PHP Expressions, Statements, and Blocks","Essential PHP expressions, statements, and blocks",[12,13,1609,1610,1611],"expressions","statements","blocks",{"_path":1613,"title":1614,"description":1615,"tags":1616,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Fflow-control","PHP Flow Control","Essential PHP flow control structures and patterns",[12,13,1617],"flow control",{"_path":1619,"title":1620,"description":1621,"tags":1622,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Finclude-require","PHP Include and Require","Understanding PHP include and require statements",[12,13,1623,1624],"include","require",{"_path":1626,"title":1627,"description":1628,"tags":1629,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Fintroduction","PHP Introduction","An introduction to PHP programming language and its fundamentals",[12,13,1630],"introduction",{"_path":1632,"title":1633,"description":1634,"tags":1635,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Foperator","PHP Operators","Essential PHP operators and their usage",[12,13,1636],"operators",{"_path":1638,"title":1639,"description":1640,"tags":1641,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Foutput-input","PHP Output & Input","Learning about PHP output and input methods",[12,13,1642,1643],"output","input",{"_path":1645,"title":1646,"description":1647,"tags":1648,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Fvariables","PHP Variables","Essential PHP variables, constants, magic constants, and variable scope",[12,13,1649,1650,1651,1652,1653,1654,1655],"variables","constants","magic constants","scope","global","local","static",{"_path":1657,"title":1658,"description":1659,"tags":1660,"date":1661},"\u002Fphp\u002Freferences","PHP References (&)","Useful PHP reference snippets and patterns",[12,13],"2026-03-19",{"_path":1663,"title":1664,"description":1665,"tags":1666,"date":1452},"\u002Fpython","Python","Python notes, snippets, and references",[1458],{"_path":1668,"title":1669,"description":1670,"tags":1671,"date":1452},"\u002Frust","Rust","Rust notes, snippets, and references",[1672],"rust",[1674,1675,1676,1677,1678,1679,1680,1681,1682,1684,1685,1687,1688,1690,1692,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715],{"_path":1446,"title":1447,"weight":56},{"_path":1454,"title":1455,"weight":1225},{"_path":1462,"title":1463,"weight":1225},{"_path":1467,"title":1468,"weight":117},{"_path":1473,"title":1474,"weight":56},{"_path":1482,"title":1483,"weight":77},{"_path":1487,"title":1488,"weight":1225},{"_path":1492,"title":1493,"weight":56},{"_path":1497,"title":1498,"weight":1683},20,{"_path":1502,"title":1503,"weight":1225},{"_path":1507,"title":1508,"weight":1686},100,{"_path":1516,"title":1517,"weight":1683},{"_path":1522,"title":1523,"weight":1689},22,{"_path":1527,"title":1528,"weight":1691},21,{"_path":1532,"title":1533,"weight":1693},23,{"_path":1537,"title":1538,"weight":1225},{"_path":1542,"title":1543,"weight":56},{"_path":1547,"title":1548,"weight":56},{"_path":1553,"title":1554},{"_path":1561,"title":1562,"weight":56},{"_path":1569,"title":1570,"weight":56},{"_path":1574,"title":1575},{"_path":1581,"title":1582,"weight":1216},{"_path":1586,"title":1587,"weight":597},{"_path":1593,"title":1594,"weight":117},{"_path":1599,"title":1600,"weight":556},{"_path":1605,"title":1606,"weight":1198},{"_path":1613,"title":1614,"weight":1225},{"_path":5,"title":9,"weight":16},{"_path":1619,"title":1620,"weight":1269},{"_path":1626,"title":1627,"weight":56},{"_path":1632,"title":1633,"weight":605},{"_path":1638,"title":1639,"weight":77},{"_path":1645,"title":1646,"weight":126},{"_path":1657,"title":1658,"weight":77},{"_path":1663,"title":1664,"weight":56},{"_path":1668,"title":1669,"weight":56},1780160028604]