[{"data":1,"prerenderedAt":2413},["ShallowReactive",2],{"content-all-\u002Fphp\u002Fphp-fundamental\u002Foperator":3,"related-\u002Fphp\u002Fphp-fundamental\u002Foperator":2145,"sidebar-content":2374},[4],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"tags":11,"date":15,"weight":16,"body":17,"_type":2139,"_id":2140,"_source":2141,"_file":2142,"_stem":2143,"_extension":2144},"\u002Fphp\u002Fphp-fundamental\u002Foperator","php-fundamental",false,"","PHP Operators","Essential PHP operators and their usage",[12,13,14],"php","backend","operators","2026-05-30",7,{"type":18,"children":19,"toc":2133},"root",[20,28,34,548,555,1712,1717,1722,2010,2015,2122,2127],{"type":21,"tag":22,"props":23,"children":24},"element","h2",{"id":14},[25],{"type":26,"value":27},"text","Operators",{"type":21,"tag":29,"props":30,"children":31},"p",{},[32],{"type":26,"value":33},"In PHP, operators are symbols that perform operations on variables and values. They can be categorized into several types:",{"type":21,"tag":35,"props":36,"children":37},"table",{},[38,62],{"type":21,"tag":39,"props":40,"children":41},"thead",{},[42],{"type":21,"tag":43,"props":44,"children":45},"tr",{},[46,52,57],{"type":21,"tag":47,"props":48,"children":49},"th",{},[50],{"type":26,"value":51},"Type",{"type":21,"tag":47,"props":53,"children":54},{},[55],{"type":26,"value":56},"Description",{"type":21,"tag":47,"props":58,"children":59},{},[60],{"type":26,"value":61},"Keywords",{"type":21,"tag":63,"props":64,"children":65},"tbody",{},[66,119,176,247,271,300,322,367,389,407,429,486,508,530],{"type":21,"tag":43,"props":67,"children":68},{},[69,75,80],{"type":21,"tag":70,"props":71,"children":72},"td",{},[73],{"type":26,"value":74},"Arithmetic Operators",{"type":21,"tag":70,"props":76,"children":77},{},[78],{"type":26,"value":79},"Perform basic mathematical operations",{"type":21,"tag":70,"props":81,"children":82},{},[83,90,92,98,99,105,106,112,113],{"type":21,"tag":84,"props":85,"children":87},"code",{"className":86},[],[88],{"type":26,"value":89},"+",{"type":26,"value":91},", ",{"type":21,"tag":84,"props":93,"children":95},{"className":94},[],[96],{"type":26,"value":97},"-",{"type":26,"value":91},{"type":21,"tag":84,"props":100,"children":102},{"className":101},[],[103],{"type":26,"value":104},"*",{"type":26,"value":91},{"type":21,"tag":84,"props":107,"children":109},{"className":108},[],[110],{"type":26,"value":111},"\u002F",{"type":26,"value":91},{"type":21,"tag":84,"props":114,"children":116},{"className":115},[],[117],{"type":26,"value":118},"%",{"type":21,"tag":43,"props":120,"children":121},{},[122,127,132],{"type":21,"tag":70,"props":123,"children":124},{},[125],{"type":26,"value":126},"Assignment Operators",{"type":21,"tag":70,"props":128,"children":129},{},[130],{"type":26,"value":131},"Assign values to variables",{"type":21,"tag":70,"props":133,"children":134},{},[135,141,142,148,149,155,156,162,163,169,170],{"type":21,"tag":84,"props":136,"children":138},{"className":137},[],[139],{"type":26,"value":140},"=",{"type":26,"value":91},{"type":21,"tag":84,"props":143,"children":145},{"className":144},[],[146],{"type":26,"value":147},"+=",{"type":26,"value":91},{"type":21,"tag":84,"props":150,"children":152},{"className":151},[],[153],{"type":26,"value":154},"-=",{"type":26,"value":91},{"type":21,"tag":84,"props":157,"children":159},{"className":158},[],[160],{"type":26,"value":161},"*=",{"type":26,"value":91},{"type":21,"tag":84,"props":164,"children":166},{"className":165},[],[167],{"type":26,"value":168},"\u002F=",{"type":26,"value":91},{"type":21,"tag":84,"props":171,"children":173},{"className":172},[],[174],{"type":26,"value":175},"%=",{"type":21,"tag":43,"props":177,"children":178},{},[179,184,189],{"type":21,"tag":70,"props":180,"children":181},{},[182],{"type":26,"value":183},"Comparison Operators",{"type":21,"tag":70,"props":185,"children":186},{},[187],{"type":26,"value":188},"Compare two values",{"type":21,"tag":70,"props":190,"children":191},{},[192,198,199,205,206,212,213,219,220,226,227,233,234,240,241],{"type":21,"tag":84,"props":193,"children":195},{"className":194},[],[196],{"type":26,"value":197},"==",{"type":26,"value":91},{"type":21,"tag":84,"props":200,"children":202},{"className":201},[],[203],{"type":26,"value":204},"===",{"type":26,"value":91},{"type":21,"tag":84,"props":207,"children":209},{"className":208},[],[210],{"type":26,"value":211},"!=",{"type":26,"value":91},{"type":21,"tag":84,"props":214,"children":216},{"className":215},[],[217],{"type":26,"value":218},"!==",{"type":26,"value":91},{"type":21,"tag":84,"props":221,"children":223},{"className":222},[],[224],{"type":26,"value":225},"\u003C",{"type":26,"value":91},{"type":21,"tag":84,"props":228,"children":230},{"className":229},[],[231],{"type":26,"value":232},">",{"type":26,"value":91},{"type":21,"tag":84,"props":235,"children":237},{"className":236},[],[238],{"type":26,"value":239},"\u003C=",{"type":26,"value":91},{"type":21,"tag":84,"props":242,"children":244},{"className":243},[],[245],{"type":26,"value":246},">=",{"type":21,"tag":43,"props":248,"children":249},{},[250,255,260],{"type":21,"tag":70,"props":251,"children":252},{},[253],{"type":26,"value":254},"Logical Operators",{"type":21,"tag":70,"props":256,"children":257},{},[258],{"type":26,"value":259},"Combine conditional statements",{"type":21,"tag":70,"props":261,"children":262},{},[263,269],{"type":21,"tag":84,"props":264,"children":266},{"className":265},[],[267],{"type":26,"value":268},"&&",{"type":26,"value":270},", `",{"type":21,"tag":43,"props":272,"children":273},{},[274,279,284],{"type":21,"tag":70,"props":275,"children":276},{},[277],{"type":26,"value":278},"Increment\u002FDecrement Operators",{"type":21,"tag":70,"props":280,"children":281},{},[282],{"type":26,"value":283},"Increase or decrease a variable's value by one",{"type":21,"tag":70,"props":285,"children":286},{},[287,293,294],{"type":21,"tag":84,"props":288,"children":290},{"className":289},[],[291],{"type":26,"value":292},"++",{"type":26,"value":91},{"type":21,"tag":84,"props":295,"children":297},{"className":296},[],[298],{"type":26,"value":299},"--",{"type":21,"tag":43,"props":301,"children":302},{},[303,308,313],{"type":21,"tag":70,"props":304,"children":305},{},[306],{"type":26,"value":307},"String Operators",{"type":21,"tag":70,"props":309,"children":310},{},[311],{"type":26,"value":312},"Concatenate strings",{"type":21,"tag":70,"props":314,"children":315},{},[316],{"type":21,"tag":84,"props":317,"children":319},{"className":318},[],[320],{"type":26,"value":321},".",{"type":21,"tag":43,"props":323,"children":324},{},[325,330,335],{"type":21,"tag":70,"props":326,"children":327},{},[328],{"type":26,"value":329},"Array Operators",{"type":21,"tag":70,"props":331,"children":332},{},[333],{"type":26,"value":334},"Perform operations on arrays",{"type":21,"tag":70,"props":336,"children":337},{},[338,343,344,349,350,355,356,361,362],{"type":21,"tag":84,"props":339,"children":341},{"className":340},[],[342],{"type":26,"value":89},{"type":26,"value":91},{"type":21,"tag":84,"props":345,"children":347},{"className":346},[],[348],{"type":26,"value":197},{"type":26,"value":91},{"type":21,"tag":84,"props":351,"children":353},{"className":352},[],[354],{"type":26,"value":204},{"type":26,"value":91},{"type":21,"tag":84,"props":357,"children":359},{"className":358},[],[360],{"type":26,"value":211},{"type":26,"value":91},{"type":21,"tag":84,"props":363,"children":365},{"className":364},[],[366],{"type":26,"value":218},{"type":21,"tag":43,"props":368,"children":369},{},[370,375,380],{"type":21,"tag":70,"props":371,"children":372},{},[373],{"type":26,"value":374},"Error Control Operators",{"type":21,"tag":70,"props":376,"children":377},{},[378],{"type":26,"value":379},"Suppress error messages",{"type":21,"tag":70,"props":381,"children":382},{},[383],{"type":21,"tag":84,"props":384,"children":386},{"className":385},[],[387],{"type":26,"value":388},"@",{"type":21,"tag":43,"props":390,"children":391},{},[392,397,402],{"type":21,"tag":70,"props":393,"children":394},{},[395],{"type":26,"value":396},"Execution Operators",{"type":21,"tag":70,"props":398,"children":399},{},[400],{"type":26,"value":401},"Execute external programs",{"type":21,"tag":70,"props":403,"children":404},{},[405],{"type":26,"value":406},"` (backticks)",{"type":21,"tag":43,"props":408,"children":409},{},[410,415,420],{"type":21,"tag":70,"props":411,"children":412},{},[413],{"type":26,"value":414},"Type Operators",{"type":21,"tag":70,"props":416,"children":417},{},[418],{"type":26,"value":419},"Check the type of a variable",{"type":21,"tag":70,"props":421,"children":422},{},[423],{"type":21,"tag":84,"props":424,"children":426},{"className":425},[],[427],{"type":26,"value":428},"instanceof",{"type":21,"tag":43,"props":430,"children":431},{},[432,437,442],{"type":21,"tag":70,"props":433,"children":434},{},[435],{"type":26,"value":436},"Bitwise Operators",{"type":21,"tag":70,"props":438,"children":439},{},[440],{"type":26,"value":441},"Perform bitwise operations",{"type":21,"tag":70,"props":443,"children":444},{},[445,451,452,458,459,465,466,472,473,479,480],{"type":21,"tag":84,"props":446,"children":448},{"className":447},[],[449],{"type":26,"value":450},"&",{"type":26,"value":91},{"type":21,"tag":84,"props":453,"children":455},{"className":454},[],[456],{"type":26,"value":457},"|",{"type":26,"value":91},{"type":21,"tag":84,"props":460,"children":462},{"className":461},[],[463],{"type":26,"value":464},"^",{"type":26,"value":91},{"type":21,"tag":84,"props":467,"children":469},{"className":468},[],[470],{"type":26,"value":471},"~",{"type":26,"value":91},{"type":21,"tag":84,"props":474,"children":476},{"className":475},[],[477],{"type":26,"value":478},"\u003C\u003C",{"type":26,"value":91},{"type":21,"tag":84,"props":481,"children":483},{"className":482},[],[484],{"type":26,"value":485},">>",{"type":21,"tag":43,"props":487,"children":488},{},[489,494,499],{"type":21,"tag":70,"props":490,"children":491},{},[492],{"type":26,"value":493},"Ternary Operator",{"type":21,"tag":70,"props":495,"children":496},{},[497],{"type":26,"value":498},"A shorthand for an if-else statement",{"type":21,"tag":70,"props":500,"children":501},{},[502],{"type":21,"tag":84,"props":503,"children":505},{"className":504},[],[506],{"type":26,"value":507},"? :",{"type":21,"tag":43,"props":509,"children":510},{},[511,516,521],{"type":21,"tag":70,"props":512,"children":513},{},[514],{"type":26,"value":515},"Null Coalescing Operator",{"type":21,"tag":70,"props":517,"children":518},{},[519],{"type":26,"value":520},"Return the first operand if it exists and is not null, otherwise return the second operand",{"type":21,"tag":70,"props":522,"children":523},{},[524],{"type":21,"tag":84,"props":525,"children":527},{"className":526},[],[528],{"type":26,"value":529},"??",{"type":21,"tag":43,"props":531,"children":532},{},[533,538,543],{"type":21,"tag":70,"props":534,"children":535},{},[536],{"type":26,"value":537},"Operator Precedence",{"type":21,"tag":70,"props":539,"children":540},{},[541],{"type":26,"value":542},"Determines the order of evaluation in expressions",{"type":21,"tag":70,"props":544,"children":545},{},[546],{"type":26,"value":547},"N\u002FA",{"type":21,"tag":549,"props":550,"children":552},"h3",{"id":551},"example-usage",[553],{"type":26,"value":554},"Example Usage",{"type":21,"tag":556,"props":557,"children":560},"pre",{"className":558,"code":559,"language":12,"meta":8,"style":8},"language-php shiki shiki-themes github-light github-dark","$a = 10;\n$b = 5;\n\n\u002F\u002F Arithmetic Operators\necho $a + $b; \u002F\u002F 15\n\n\u002F\u002F Assignment Operators\n$a += $b; \u002F\u002F $a is now 15\n\n\u002F\u002F Comparison Operators\nif ($a > $b) {\n    echo \"$a is greater than $b\";\n}\n\n\u002F\u002F Logical Operators\nif ($a > 10 && $b \u003C 10) {\n    echo \"Both conditions are true\";\n}\n\n\u002F\u002F Increment\u002FDecrement Operators\n$a++; \u002F\u002F $a is now 16\n$b--; \u002F\u002F $b is now 4\n\n\u002F\u002F String Operators\n$str1 = \"Hello, \";\n$str2 = \"World!\";\necho $str1 . $str2; \u002F\u002F \"Hello, World!\"\n\n\u002F\u002F Array Operators\n$array1 = [1, 2, 3];\n$array2 = [4, 5, 6];\n$result = $array1 + $array2; \u002F\u002F [1, 2, 3, 4, 5, 6]\n\n\u002F\u002F Error Control Operators\n$result = @file_get_contents('nonexistentfile.txt'); \u002F\u002F Suppresses error message\n\n\u002F\u002F Execution Operators\n$output = `ls -l`; \u002F\u002F Executes the command and stores the output\n\n\u002F\u002F Type Operators\nclass MyClass {}\n$obj = new MyClass();\nif ($obj instanceof MyClass) {\n    echo \"The object is an instance of MyClass\";\n}\n\n\u002F\u002F Bitwise Operators\n$x = 5; \u002F\u002F 0101 in binary\n$y = 3; \u002F\u002F 0011 in binary\necho $x & $y; \u002F\u002F 1 (0001 in binary)\necho $x | $y; \u002F\u002F 7 (0111 in binary)\necho $x ^ $y; \u002F\u002F 6 (0110 in binary)\n\n\u002F\u002F Ternary Operator\n$age = 20;\n$status = ($age >= 18) ? \"Adult\" : \"Minor\";\necho $status; \u002F\u002F \"Adult\"\n\n\u002F\u002F Null Coalescing Operator\n$username = $_GET['username'] ?? 'Guest';\necho $username; \u002F\u002F Outputs the username if it exists, otherwise \"Guest\"\n",[561],{"type":21,"tag":84,"props":562,"children":563},{"__ignoreMap":8},[564,592,614,624,634,662,670,678,699,707,716,739,778,787,795,804,847,864,872,880,889,911,932,940,949,971,993,1020,1028,1037,1083,1127,1159,1167,1176,1218,1226,1235,1262,1270,1279,1299,1326,1351,1368,1376,1384,1393,1419,1446,1473,1498,1523,1531,1540,1562,1618,1636,1644,1653,1694],{"type":21,"tag":565,"props":566,"children":569},"span",{"class":567,"line":568},"line",1,[570,576,581,587],{"type":21,"tag":565,"props":571,"children":573},{"style":572},"--shiki-default:#24292E;--shiki-dark:#E1E4E8",[574],{"type":26,"value":575},"$a ",{"type":21,"tag":565,"props":577,"children":579},{"style":578},"--shiki-default:#D73A49;--shiki-dark:#F97583",[580],{"type":26,"value":140},{"type":21,"tag":565,"props":582,"children":584},{"style":583},"--shiki-default:#005CC5;--shiki-dark:#79B8FF",[585],{"type":26,"value":586}," 10",{"type":21,"tag":565,"props":588,"children":589},{"style":572},[590],{"type":26,"value":591},";\n",{"type":21,"tag":565,"props":593,"children":595},{"class":567,"line":594},2,[596,601,605,610],{"type":21,"tag":565,"props":597,"children":598},{"style":572},[599],{"type":26,"value":600},"$b ",{"type":21,"tag":565,"props":602,"children":603},{"style":578},[604],{"type":26,"value":140},{"type":21,"tag":565,"props":606,"children":607},{"style":583},[608],{"type":26,"value":609}," 5",{"type":21,"tag":565,"props":611,"children":612},{"style":572},[613],{"type":26,"value":591},{"type":21,"tag":565,"props":615,"children":617},{"class":567,"line":616},3,[618],{"type":21,"tag":565,"props":619,"children":621},{"emptyLinePlaceholder":620},true,[622],{"type":26,"value":623},"\n",{"type":21,"tag":565,"props":625,"children":627},{"class":567,"line":626},4,[628],{"type":21,"tag":565,"props":629,"children":631},{"style":630},"--shiki-default:#6A737D;--shiki-dark:#6A737D",[632],{"type":26,"value":633},"\u002F\u002F Arithmetic Operators\n",{"type":21,"tag":565,"props":635,"children":637},{"class":567,"line":636},5,[638,643,648,652,657],{"type":21,"tag":565,"props":639,"children":640},{"style":583},[641],{"type":26,"value":642},"echo",{"type":21,"tag":565,"props":644,"children":645},{"style":572},[646],{"type":26,"value":647}," $a ",{"type":21,"tag":565,"props":649,"children":650},{"style":578},[651],{"type":26,"value":89},{"type":21,"tag":565,"props":653,"children":654},{"style":572},[655],{"type":26,"value":656}," $b; ",{"type":21,"tag":565,"props":658,"children":659},{"style":630},[660],{"type":26,"value":661},"\u002F\u002F 15\n",{"type":21,"tag":565,"props":663,"children":665},{"class":567,"line":664},6,[666],{"type":21,"tag":565,"props":667,"children":668},{"emptyLinePlaceholder":620},[669],{"type":26,"value":623},{"type":21,"tag":565,"props":671,"children":672},{"class":567,"line":16},[673],{"type":21,"tag":565,"props":674,"children":675},{"style":630},[676],{"type":26,"value":677},"\u002F\u002F Assignment Operators\n",{"type":21,"tag":565,"props":679,"children":681},{"class":567,"line":680},8,[682,686,690,694],{"type":21,"tag":565,"props":683,"children":684},{"style":572},[685],{"type":26,"value":575},{"type":21,"tag":565,"props":687,"children":688},{"style":578},[689],{"type":26,"value":147},{"type":21,"tag":565,"props":691,"children":692},{"style":572},[693],{"type":26,"value":656},{"type":21,"tag":565,"props":695,"children":696},{"style":630},[697],{"type":26,"value":698},"\u002F\u002F $a is now 15\n",{"type":21,"tag":565,"props":700,"children":702},{"class":567,"line":701},9,[703],{"type":21,"tag":565,"props":704,"children":705},{"emptyLinePlaceholder":620},[706],{"type":26,"value":623},{"type":21,"tag":565,"props":708,"children":710},{"class":567,"line":709},10,[711],{"type":21,"tag":565,"props":712,"children":713},{"style":630},[714],{"type":26,"value":715},"\u002F\u002F Comparison Operators\n",{"type":21,"tag":565,"props":717,"children":719},{"class":567,"line":718},11,[720,725,730,734],{"type":21,"tag":565,"props":721,"children":722},{"style":578},[723],{"type":26,"value":724},"if",{"type":21,"tag":565,"props":726,"children":727},{"style":572},[728],{"type":26,"value":729}," ($a ",{"type":21,"tag":565,"props":731,"children":732},{"style":578},[733],{"type":26,"value":232},{"type":21,"tag":565,"props":735,"children":736},{"style":572},[737],{"type":26,"value":738}," $b) {\n",{"type":21,"tag":565,"props":740,"children":742},{"class":567,"line":741},12,[743,748,754,759,764,769,774],{"type":21,"tag":565,"props":744,"children":745},{"style":583},[746],{"type":26,"value":747},"    echo",{"type":21,"tag":565,"props":749,"children":751},{"style":750},"--shiki-default:#032F62;--shiki-dark:#9ECBFF",[752],{"type":26,"value":753}," \"",{"type":21,"tag":565,"props":755,"children":756},{"style":572},[757],{"type":26,"value":758},"$a",{"type":21,"tag":565,"props":760,"children":761},{"style":750},[762],{"type":26,"value":763}," is greater than ",{"type":21,"tag":565,"props":765,"children":766},{"style":572},[767],{"type":26,"value":768},"$b",{"type":21,"tag":565,"props":770,"children":771},{"style":750},[772],{"type":26,"value":773},"\"",{"type":21,"tag":565,"props":775,"children":776},{"style":572},[777],{"type":26,"value":591},{"type":21,"tag":565,"props":779,"children":781},{"class":567,"line":780},13,[782],{"type":21,"tag":565,"props":783,"children":784},{"style":572},[785],{"type":26,"value":786},"}\n",{"type":21,"tag":565,"props":788,"children":790},{"class":567,"line":789},14,[791],{"type":21,"tag":565,"props":792,"children":793},{"emptyLinePlaceholder":620},[794],{"type":26,"value":623},{"type":21,"tag":565,"props":796,"children":798},{"class":567,"line":797},15,[799],{"type":21,"tag":565,"props":800,"children":801},{"style":630},[802],{"type":26,"value":803},"\u002F\u002F Logical Operators\n",{"type":21,"tag":565,"props":805,"children":807},{"class":567,"line":806},16,[808,812,816,820,824,829,834,838,842],{"type":21,"tag":565,"props":809,"children":810},{"style":578},[811],{"type":26,"value":724},{"type":21,"tag":565,"props":813,"children":814},{"style":572},[815],{"type":26,"value":729},{"type":21,"tag":565,"props":817,"children":818},{"style":578},[819],{"type":26,"value":232},{"type":21,"tag":565,"props":821,"children":822},{"style":583},[823],{"type":26,"value":586},{"type":21,"tag":565,"props":825,"children":826},{"style":578},[827],{"type":26,"value":828}," &&",{"type":21,"tag":565,"props":830,"children":831},{"style":572},[832],{"type":26,"value":833}," $b ",{"type":21,"tag":565,"props":835,"children":836},{"style":578},[837],{"type":26,"value":225},{"type":21,"tag":565,"props":839,"children":840},{"style":583},[841],{"type":26,"value":586},{"type":21,"tag":565,"props":843,"children":844},{"style":572},[845],{"type":26,"value":846},") {\n",{"type":21,"tag":565,"props":848,"children":850},{"class":567,"line":849},17,[851,855,860],{"type":21,"tag":565,"props":852,"children":853},{"style":583},[854],{"type":26,"value":747},{"type":21,"tag":565,"props":856,"children":857},{"style":750},[858],{"type":26,"value":859}," \"Both conditions are true\"",{"type":21,"tag":565,"props":861,"children":862},{"style":572},[863],{"type":26,"value":591},{"type":21,"tag":565,"props":865,"children":867},{"class":567,"line":866},18,[868],{"type":21,"tag":565,"props":869,"children":870},{"style":572},[871],{"type":26,"value":786},{"type":21,"tag":565,"props":873,"children":875},{"class":567,"line":874},19,[876],{"type":21,"tag":565,"props":877,"children":878},{"emptyLinePlaceholder":620},[879],{"type":26,"value":623},{"type":21,"tag":565,"props":881,"children":883},{"class":567,"line":882},20,[884],{"type":21,"tag":565,"props":885,"children":886},{"style":630},[887],{"type":26,"value":888},"\u002F\u002F Increment\u002FDecrement Operators\n",{"type":21,"tag":565,"props":890,"children":892},{"class":567,"line":891},21,[893,897,901,906],{"type":21,"tag":565,"props":894,"children":895},{"style":572},[896],{"type":26,"value":758},{"type":21,"tag":565,"props":898,"children":899},{"style":578},[900],{"type":26,"value":292},{"type":21,"tag":565,"props":902,"children":903},{"style":572},[904],{"type":26,"value":905},"; ",{"type":21,"tag":565,"props":907,"children":908},{"style":630},[909],{"type":26,"value":910},"\u002F\u002F $a is now 16\n",{"type":21,"tag":565,"props":912,"children":914},{"class":567,"line":913},22,[915,919,923,927],{"type":21,"tag":565,"props":916,"children":917},{"style":572},[918],{"type":26,"value":768},{"type":21,"tag":565,"props":920,"children":921},{"style":578},[922],{"type":26,"value":299},{"type":21,"tag":565,"props":924,"children":925},{"style":572},[926],{"type":26,"value":905},{"type":21,"tag":565,"props":928,"children":929},{"style":630},[930],{"type":26,"value":931},"\u002F\u002F $b is now 4\n",{"type":21,"tag":565,"props":933,"children":935},{"class":567,"line":934},23,[936],{"type":21,"tag":565,"props":937,"children":938},{"emptyLinePlaceholder":620},[939],{"type":26,"value":623},{"type":21,"tag":565,"props":941,"children":943},{"class":567,"line":942},24,[944],{"type":21,"tag":565,"props":945,"children":946},{"style":630},[947],{"type":26,"value":948},"\u002F\u002F String Operators\n",{"type":21,"tag":565,"props":950,"children":952},{"class":567,"line":951},25,[953,958,962,967],{"type":21,"tag":565,"props":954,"children":955},{"style":572},[956],{"type":26,"value":957},"$str1 ",{"type":21,"tag":565,"props":959,"children":960},{"style":578},[961],{"type":26,"value":140},{"type":21,"tag":565,"props":963,"children":964},{"style":750},[965],{"type":26,"value":966}," \"Hello, \"",{"type":21,"tag":565,"props":968,"children":969},{"style":572},[970],{"type":26,"value":591},{"type":21,"tag":565,"props":972,"children":974},{"class":567,"line":973},26,[975,980,984,989],{"type":21,"tag":565,"props":976,"children":977},{"style":572},[978],{"type":26,"value":979},"$str2 ",{"type":21,"tag":565,"props":981,"children":982},{"style":578},[983],{"type":26,"value":140},{"type":21,"tag":565,"props":985,"children":986},{"style":750},[987],{"type":26,"value":988}," \"World!\"",{"type":21,"tag":565,"props":990,"children":991},{"style":572},[992],{"type":26,"value":591},{"type":21,"tag":565,"props":994,"children":996},{"class":567,"line":995},27,[997,1001,1006,1010,1015],{"type":21,"tag":565,"props":998,"children":999},{"style":583},[1000],{"type":26,"value":642},{"type":21,"tag":565,"props":1002,"children":1003},{"style":572},[1004],{"type":26,"value":1005}," $str1 ",{"type":21,"tag":565,"props":1007,"children":1008},{"style":578},[1009],{"type":26,"value":321},{"type":21,"tag":565,"props":1011,"children":1012},{"style":572},[1013],{"type":26,"value":1014}," $str2; ",{"type":21,"tag":565,"props":1016,"children":1017},{"style":630},[1018],{"type":26,"value":1019},"\u002F\u002F \"Hello, World!\"\n",{"type":21,"tag":565,"props":1021,"children":1023},{"class":567,"line":1022},28,[1024],{"type":21,"tag":565,"props":1025,"children":1026},{"emptyLinePlaceholder":620},[1027],{"type":26,"value":623},{"type":21,"tag":565,"props":1029,"children":1031},{"class":567,"line":1030},29,[1032],{"type":21,"tag":565,"props":1033,"children":1034},{"style":630},[1035],{"type":26,"value":1036},"\u002F\u002F Array Operators\n",{"type":21,"tag":565,"props":1038,"children":1040},{"class":567,"line":1039},30,[1041,1046,1050,1055,1060,1064,1069,1073,1078],{"type":21,"tag":565,"props":1042,"children":1043},{"style":572},[1044],{"type":26,"value":1045},"$array1 ",{"type":21,"tag":565,"props":1047,"children":1048},{"style":578},[1049],{"type":26,"value":140},{"type":21,"tag":565,"props":1051,"children":1052},{"style":572},[1053],{"type":26,"value":1054}," [",{"type":21,"tag":565,"props":1056,"children":1057},{"style":583},[1058],{"type":26,"value":1059},"1",{"type":21,"tag":565,"props":1061,"children":1062},{"style":572},[1063],{"type":26,"value":91},{"type":21,"tag":565,"props":1065,"children":1066},{"style":583},[1067],{"type":26,"value":1068},"2",{"type":21,"tag":565,"props":1070,"children":1071},{"style":572},[1072],{"type":26,"value":91},{"type":21,"tag":565,"props":1074,"children":1075},{"style":583},[1076],{"type":26,"value":1077},"3",{"type":21,"tag":565,"props":1079,"children":1080},{"style":572},[1081],{"type":26,"value":1082},"];\n",{"type":21,"tag":565,"props":1084,"children":1086},{"class":567,"line":1085},31,[1087,1092,1096,1100,1105,1109,1114,1118,1123],{"type":21,"tag":565,"props":1088,"children":1089},{"style":572},[1090],{"type":26,"value":1091},"$array2 ",{"type":21,"tag":565,"props":1093,"children":1094},{"style":578},[1095],{"type":26,"value":140},{"type":21,"tag":565,"props":1097,"children":1098},{"style":572},[1099],{"type":26,"value":1054},{"type":21,"tag":565,"props":1101,"children":1102},{"style":583},[1103],{"type":26,"value":1104},"4",{"type":21,"tag":565,"props":1106,"children":1107},{"style":572},[1108],{"type":26,"value":91},{"type":21,"tag":565,"props":1110,"children":1111},{"style":583},[1112],{"type":26,"value":1113},"5",{"type":21,"tag":565,"props":1115,"children":1116},{"style":572},[1117],{"type":26,"value":91},{"type":21,"tag":565,"props":1119,"children":1120},{"style":583},[1121],{"type":26,"value":1122},"6",{"type":21,"tag":565,"props":1124,"children":1125},{"style":572},[1126],{"type":26,"value":1082},{"type":21,"tag":565,"props":1128,"children":1130},{"class":567,"line":1129},32,[1131,1136,1140,1145,1149,1154],{"type":21,"tag":565,"props":1132,"children":1133},{"style":572},[1134],{"type":26,"value":1135},"$result ",{"type":21,"tag":565,"props":1137,"children":1138},{"style":578},[1139],{"type":26,"value":140},{"type":21,"tag":565,"props":1141,"children":1142},{"style":572},[1143],{"type":26,"value":1144}," $array1 ",{"type":21,"tag":565,"props":1146,"children":1147},{"style":578},[1148],{"type":26,"value":89},{"type":21,"tag":565,"props":1150,"children":1151},{"style":572},[1152],{"type":26,"value":1153}," $array2; ",{"type":21,"tag":565,"props":1155,"children":1156},{"style":630},[1157],{"type":26,"value":1158},"\u002F\u002F [1, 2, 3, 4, 5, 6]\n",{"type":21,"tag":565,"props":1160,"children":1162},{"class":567,"line":1161},33,[1163],{"type":21,"tag":565,"props":1164,"children":1165},{"emptyLinePlaceholder":620},[1166],{"type":26,"value":623},{"type":21,"tag":565,"props":1168,"children":1170},{"class":567,"line":1169},34,[1171],{"type":21,"tag":565,"props":1172,"children":1173},{"style":630},[1174],{"type":26,"value":1175},"\u002F\u002F Error Control Operators\n",{"type":21,"tag":565,"props":1177,"children":1179},{"class":567,"line":1178},35,[1180,1184,1188,1193,1198,1203,1208,1213],{"type":21,"tag":565,"props":1181,"children":1182},{"style":572},[1183],{"type":26,"value":1135},{"type":21,"tag":565,"props":1185,"children":1186},{"style":578},[1187],{"type":26,"value":140},{"type":21,"tag":565,"props":1189,"children":1190},{"style":578},[1191],{"type":26,"value":1192}," @",{"type":21,"tag":565,"props":1194,"children":1195},{"style":583},[1196],{"type":26,"value":1197},"file_get_contents",{"type":21,"tag":565,"props":1199,"children":1200},{"style":572},[1201],{"type":26,"value":1202},"(",{"type":21,"tag":565,"props":1204,"children":1205},{"style":750},[1206],{"type":26,"value":1207},"'nonexistentfile.txt'",{"type":21,"tag":565,"props":1209,"children":1210},{"style":572},[1211],{"type":26,"value":1212},"); ",{"type":21,"tag":565,"props":1214,"children":1215},{"style":630},[1216],{"type":26,"value":1217},"\u002F\u002F Suppresses error message\n",{"type":21,"tag":565,"props":1219,"children":1221},{"class":567,"line":1220},36,[1222],{"type":21,"tag":565,"props":1223,"children":1224},{"emptyLinePlaceholder":620},[1225],{"type":26,"value":623},{"type":21,"tag":565,"props":1227,"children":1229},{"class":567,"line":1228},37,[1230],{"type":21,"tag":565,"props":1231,"children":1232},{"style":630},[1233],{"type":26,"value":1234},"\u002F\u002F Execution Operators\n",{"type":21,"tag":565,"props":1236,"children":1238},{"class":567,"line":1237},38,[1239,1244,1248,1253,1257],{"type":21,"tag":565,"props":1240,"children":1241},{"style":572},[1242],{"type":26,"value":1243},"$output ",{"type":21,"tag":565,"props":1245,"children":1246},{"style":578},[1247],{"type":26,"value":140},{"type":21,"tag":565,"props":1249,"children":1250},{"style":750},[1251],{"type":26,"value":1252}," `ls -l`",{"type":21,"tag":565,"props":1254,"children":1255},{"style":572},[1256],{"type":26,"value":905},{"type":21,"tag":565,"props":1258,"children":1259},{"style":630},[1260],{"type":26,"value":1261},"\u002F\u002F Executes the command and stores the output\n",{"type":21,"tag":565,"props":1263,"children":1265},{"class":567,"line":1264},39,[1266],{"type":21,"tag":565,"props":1267,"children":1268},{"emptyLinePlaceholder":620},[1269],{"type":26,"value":623},{"type":21,"tag":565,"props":1271,"children":1273},{"class":567,"line":1272},40,[1274],{"type":21,"tag":565,"props":1275,"children":1276},{"style":630},[1277],{"type":26,"value":1278},"\u002F\u002F Type Operators\n",{"type":21,"tag":565,"props":1280,"children":1282},{"class":567,"line":1281},41,[1283,1288,1294],{"type":21,"tag":565,"props":1284,"children":1285},{"style":578},[1286],{"type":26,"value":1287},"class",{"type":21,"tag":565,"props":1289,"children":1291},{"style":1290},"--shiki-default:#6F42C1;--shiki-dark:#B392F0",[1292],{"type":26,"value":1293}," MyClass",{"type":21,"tag":565,"props":1295,"children":1296},{"style":572},[1297],{"type":26,"value":1298}," {}\n",{"type":21,"tag":565,"props":1300,"children":1302},{"class":567,"line":1301},42,[1303,1308,1312,1317,1321],{"type":21,"tag":565,"props":1304,"children":1305},{"style":572},[1306],{"type":26,"value":1307},"$obj ",{"type":21,"tag":565,"props":1309,"children":1310},{"style":578},[1311],{"type":26,"value":140},{"type":21,"tag":565,"props":1313,"children":1314},{"style":578},[1315],{"type":26,"value":1316}," new",{"type":21,"tag":565,"props":1318,"children":1319},{"style":583},[1320],{"type":26,"value":1293},{"type":21,"tag":565,"props":1322,"children":1323},{"style":572},[1324],{"type":26,"value":1325},"();\n",{"type":21,"tag":565,"props":1327,"children":1329},{"class":567,"line":1328},43,[1330,1334,1339,1343,1347],{"type":21,"tag":565,"props":1331,"children":1332},{"style":578},[1333],{"type":26,"value":724},{"type":21,"tag":565,"props":1335,"children":1336},{"style":572},[1337],{"type":26,"value":1338}," ($obj ",{"type":21,"tag":565,"props":1340,"children":1341},{"style":578},[1342],{"type":26,"value":428},{"type":21,"tag":565,"props":1344,"children":1345},{"style":583},[1346],{"type":26,"value":1293},{"type":21,"tag":565,"props":1348,"children":1349},{"style":572},[1350],{"type":26,"value":846},{"type":21,"tag":565,"props":1352,"children":1354},{"class":567,"line":1353},44,[1355,1359,1364],{"type":21,"tag":565,"props":1356,"children":1357},{"style":583},[1358],{"type":26,"value":747},{"type":21,"tag":565,"props":1360,"children":1361},{"style":750},[1362],{"type":26,"value":1363}," \"The object is an instance of MyClass\"",{"type":21,"tag":565,"props":1365,"children":1366},{"style":572},[1367],{"type":26,"value":591},{"type":21,"tag":565,"props":1369,"children":1371},{"class":567,"line":1370},45,[1372],{"type":21,"tag":565,"props":1373,"children":1374},{"style":572},[1375],{"type":26,"value":786},{"type":21,"tag":565,"props":1377,"children":1379},{"class":567,"line":1378},46,[1380],{"type":21,"tag":565,"props":1381,"children":1382},{"emptyLinePlaceholder":620},[1383],{"type":26,"value":623},{"type":21,"tag":565,"props":1385,"children":1387},{"class":567,"line":1386},47,[1388],{"type":21,"tag":565,"props":1389,"children":1390},{"style":630},[1391],{"type":26,"value":1392},"\u002F\u002F Bitwise Operators\n",{"type":21,"tag":565,"props":1394,"children":1396},{"class":567,"line":1395},48,[1397,1402,1406,1410,1414],{"type":21,"tag":565,"props":1398,"children":1399},{"style":572},[1400],{"type":26,"value":1401},"$x ",{"type":21,"tag":565,"props":1403,"children":1404},{"style":578},[1405],{"type":26,"value":140},{"type":21,"tag":565,"props":1407,"children":1408},{"style":583},[1409],{"type":26,"value":609},{"type":21,"tag":565,"props":1411,"children":1412},{"style":572},[1413],{"type":26,"value":905},{"type":21,"tag":565,"props":1415,"children":1416},{"style":630},[1417],{"type":26,"value":1418},"\u002F\u002F 0101 in binary\n",{"type":21,"tag":565,"props":1420,"children":1422},{"class":567,"line":1421},49,[1423,1428,1432,1437,1441],{"type":21,"tag":565,"props":1424,"children":1425},{"style":572},[1426],{"type":26,"value":1427},"$y ",{"type":21,"tag":565,"props":1429,"children":1430},{"style":578},[1431],{"type":26,"value":140},{"type":21,"tag":565,"props":1433,"children":1434},{"style":583},[1435],{"type":26,"value":1436}," 3",{"type":21,"tag":565,"props":1438,"children":1439},{"style":572},[1440],{"type":26,"value":905},{"type":21,"tag":565,"props":1442,"children":1443},{"style":630},[1444],{"type":26,"value":1445},"\u002F\u002F 0011 in binary\n",{"type":21,"tag":565,"props":1447,"children":1449},{"class":567,"line":1448},50,[1450,1454,1459,1463,1468],{"type":21,"tag":565,"props":1451,"children":1452},{"style":583},[1453],{"type":26,"value":642},{"type":21,"tag":565,"props":1455,"children":1456},{"style":572},[1457],{"type":26,"value":1458}," $x ",{"type":21,"tag":565,"props":1460,"children":1461},{"style":578},[1462],{"type":26,"value":450},{"type":21,"tag":565,"props":1464,"children":1465},{"style":572},[1466],{"type":26,"value":1467}," $y; ",{"type":21,"tag":565,"props":1469,"children":1470},{"style":630},[1471],{"type":26,"value":1472},"\u002F\u002F 1 (0001 in binary)\n",{"type":21,"tag":565,"props":1474,"children":1476},{"class":567,"line":1475},51,[1477,1481,1485,1489,1493],{"type":21,"tag":565,"props":1478,"children":1479},{"style":583},[1480],{"type":26,"value":642},{"type":21,"tag":565,"props":1482,"children":1483},{"style":572},[1484],{"type":26,"value":1458},{"type":21,"tag":565,"props":1486,"children":1487},{"style":578},[1488],{"type":26,"value":457},{"type":21,"tag":565,"props":1490,"children":1491},{"style":572},[1492],{"type":26,"value":1467},{"type":21,"tag":565,"props":1494,"children":1495},{"style":630},[1496],{"type":26,"value":1497},"\u002F\u002F 7 (0111 in binary)\n",{"type":21,"tag":565,"props":1499,"children":1501},{"class":567,"line":1500},52,[1502,1506,1510,1514,1518],{"type":21,"tag":565,"props":1503,"children":1504},{"style":583},[1505],{"type":26,"value":642},{"type":21,"tag":565,"props":1507,"children":1508},{"style":572},[1509],{"type":26,"value":1458},{"type":21,"tag":565,"props":1511,"children":1512},{"style":578},[1513],{"type":26,"value":464},{"type":21,"tag":565,"props":1515,"children":1516},{"style":572},[1517],{"type":26,"value":1467},{"type":21,"tag":565,"props":1519,"children":1520},{"style":630},[1521],{"type":26,"value":1522},"\u002F\u002F 6 (0110 in binary)\n",{"type":21,"tag":565,"props":1524,"children":1526},{"class":567,"line":1525},53,[1527],{"type":21,"tag":565,"props":1528,"children":1529},{"emptyLinePlaceholder":620},[1530],{"type":26,"value":623},{"type":21,"tag":565,"props":1532,"children":1534},{"class":567,"line":1533},54,[1535],{"type":21,"tag":565,"props":1536,"children":1537},{"style":630},[1538],{"type":26,"value":1539},"\u002F\u002F Ternary Operator\n",{"type":21,"tag":565,"props":1541,"children":1543},{"class":567,"line":1542},55,[1544,1549,1553,1558],{"type":21,"tag":565,"props":1545,"children":1546},{"style":572},[1547],{"type":26,"value":1548},"$age ",{"type":21,"tag":565,"props":1550,"children":1551},{"style":578},[1552],{"type":26,"value":140},{"type":21,"tag":565,"props":1554,"children":1555},{"style":583},[1556],{"type":26,"value":1557}," 20",{"type":21,"tag":565,"props":1559,"children":1560},{"style":572},[1561],{"type":26,"value":591},{"type":21,"tag":565,"props":1563,"children":1565},{"class":567,"line":1564},56,[1566,1571,1575,1580,1584,1589,1594,1599,1604,1609,1614],{"type":21,"tag":565,"props":1567,"children":1568},{"style":572},[1569],{"type":26,"value":1570},"$status ",{"type":21,"tag":565,"props":1572,"children":1573},{"style":578},[1574],{"type":26,"value":140},{"type":21,"tag":565,"props":1576,"children":1577},{"style":572},[1578],{"type":26,"value":1579}," ($age ",{"type":21,"tag":565,"props":1581,"children":1582},{"style":578},[1583],{"type":26,"value":246},{"type":21,"tag":565,"props":1585,"children":1586},{"style":583},[1587],{"type":26,"value":1588}," 18",{"type":21,"tag":565,"props":1590,"children":1591},{"style":572},[1592],{"type":26,"value":1593},") ",{"type":21,"tag":565,"props":1595,"children":1596},{"style":578},[1597],{"type":26,"value":1598},"?",{"type":21,"tag":565,"props":1600,"children":1601},{"style":750},[1602],{"type":26,"value":1603}," \"Adult\"",{"type":21,"tag":565,"props":1605,"children":1606},{"style":578},[1607],{"type":26,"value":1608}," :",{"type":21,"tag":565,"props":1610,"children":1611},{"style":750},[1612],{"type":26,"value":1613}," \"Minor\"",{"type":21,"tag":565,"props":1615,"children":1616},{"style":572},[1617],{"type":26,"value":591},{"type":21,"tag":565,"props":1619,"children":1621},{"class":567,"line":1620},57,[1622,1626,1631],{"type":21,"tag":565,"props":1623,"children":1624},{"style":583},[1625],{"type":26,"value":642},{"type":21,"tag":565,"props":1627,"children":1628},{"style":572},[1629],{"type":26,"value":1630}," $status; ",{"type":21,"tag":565,"props":1632,"children":1633},{"style":630},[1634],{"type":26,"value":1635},"\u002F\u002F \"Adult\"\n",{"type":21,"tag":565,"props":1637,"children":1639},{"class":567,"line":1638},58,[1640],{"type":21,"tag":565,"props":1641,"children":1642},{"emptyLinePlaceholder":620},[1643],{"type":26,"value":623},{"type":21,"tag":565,"props":1645,"children":1647},{"class":567,"line":1646},59,[1648],{"type":21,"tag":565,"props":1649,"children":1650},{"style":630},[1651],{"type":26,"value":1652},"\u002F\u002F Null Coalescing Operator\n",{"type":21,"tag":565,"props":1654,"children":1656},{"class":567,"line":1655},60,[1657,1662,1666,1671,1676,1681,1685,1690],{"type":21,"tag":565,"props":1658,"children":1659},{"style":572},[1660],{"type":26,"value":1661},"$username ",{"type":21,"tag":565,"props":1663,"children":1664},{"style":578},[1665],{"type":26,"value":140},{"type":21,"tag":565,"props":1667,"children":1668},{"style":572},[1669],{"type":26,"value":1670}," $_GET[",{"type":21,"tag":565,"props":1672,"children":1673},{"style":750},[1674],{"type":26,"value":1675},"'username'",{"type":21,"tag":565,"props":1677,"children":1678},{"style":572},[1679],{"type":26,"value":1680},"] ",{"type":21,"tag":565,"props":1682,"children":1683},{"style":578},[1684],{"type":26,"value":529},{"type":21,"tag":565,"props":1686,"children":1687},{"style":750},[1688],{"type":26,"value":1689}," 'Guest'",{"type":21,"tag":565,"props":1691,"children":1692},{"style":572},[1693],{"type":26,"value":591},{"type":21,"tag":565,"props":1695,"children":1697},{"class":567,"line":1696},61,[1698,1702,1707],{"type":21,"tag":565,"props":1699,"children":1700},{"style":583},[1701],{"type":26,"value":642},{"type":21,"tag":565,"props":1703,"children":1704},{"style":572},[1705],{"type":26,"value":1706}," $username; ",{"type":21,"tag":565,"props":1708,"children":1709},{"style":630},[1710],{"type":26,"value":1711},"\u002F\u002F Outputs the username if it exists, otherwise \"Guest\"\n",{"type":21,"tag":549,"props":1713,"children":1715},{"id":1714},"operator-precedence",[1716],{"type":26,"value":537},{"type":21,"tag":29,"props":1718,"children":1719},{},[1720],{"type":26,"value":1721},"Operator precedence determines the order in which operators are evaluated in an expression. In PHP, the operator precedence is as follows (from highest to lowest):",{"type":21,"tag":1723,"props":1724,"children":1725},"ol",{},[1726,1743,1773,1800,1820,1834,1848,1874,1900,1908,1916,1924,1932,1941,1949,1987],{"type":21,"tag":1727,"props":1728,"children":1729},"li",{},[1730,1736,1737],{"type":21,"tag":84,"props":1731,"children":1733},{"className":1732},[],[1734],{"type":26,"value":1735},"clone",{"type":26,"value":91},{"type":21,"tag":84,"props":1738,"children":1740},{"className":1739},[],[1741],{"type":26,"value":1742},"new",{"type":21,"tag":1727,"props":1744,"children":1745},{},[1746,1752,1753,1759,1760,1766,1767],{"type":21,"tag":84,"props":1747,"children":1749},{"className":1748},[],[1750],{"type":26,"value":1751},"[]",{"type":26,"value":91},{"type":21,"tag":84,"props":1754,"children":1756},{"className":1755},[],[1757],{"type":26,"value":1758},"()",{"type":26,"value":91},{"type":21,"tag":84,"props":1761,"children":1763},{"className":1762},[],[1764],{"type":26,"value":1765},"->",{"type":26,"value":91},{"type":21,"tag":84,"props":1768,"children":1770},{"className":1769},[],[1771],{"type":26,"value":1772},"::",{"type":21,"tag":1727,"props":1774,"children":1775},{},[1776,1781,1782,1787,1788,1794,1795],{"type":21,"tag":84,"props":1777,"children":1779},{"className":1778},[],[1780],{"type":26,"value":292},{"type":26,"value":91},{"type":21,"tag":84,"props":1783,"children":1785},{"className":1784},[],[1786],{"type":26,"value":299},{"type":26,"value":91},{"type":21,"tag":84,"props":1789,"children":1791},{"className":1790},[],[1792],{"type":26,"value":1793},"!",{"type":26,"value":91},{"type":21,"tag":84,"props":1796,"children":1798},{"className":1797},[],[1799],{"type":26,"value":471},{"type":21,"tag":1727,"props":1801,"children":1802},{},[1803,1808,1809,1814,1815],{"type":21,"tag":84,"props":1804,"children":1806},{"className":1805},[],[1807],{"type":26,"value":104},{"type":26,"value":91},{"type":21,"tag":84,"props":1810,"children":1812},{"className":1811},[],[1813],{"type":26,"value":111},{"type":26,"value":91},{"type":21,"tag":84,"props":1816,"children":1818},{"className":1817},[],[1819],{"type":26,"value":118},{"type":21,"tag":1727,"props":1821,"children":1822},{},[1823,1828,1829],{"type":21,"tag":84,"props":1824,"children":1826},{"className":1825},[],[1827],{"type":26,"value":89},{"type":26,"value":91},{"type":21,"tag":84,"props":1830,"children":1832},{"className":1831},[],[1833],{"type":26,"value":97},{"type":21,"tag":1727,"props":1835,"children":1836},{},[1837,1842,1843],{"type":21,"tag":84,"props":1838,"children":1840},{"className":1839},[],[1841],{"type":26,"value":478},{"type":26,"value":91},{"type":21,"tag":84,"props":1844,"children":1846},{"className":1845},[],[1847],{"type":26,"value":485},{"type":21,"tag":1727,"props":1849,"children":1850},{},[1851,1856,1857,1862,1863,1868,1869],{"type":21,"tag":84,"props":1852,"children":1854},{"className":1853},[],[1855],{"type":26,"value":225},{"type":26,"value":91},{"type":21,"tag":84,"props":1858,"children":1860},{"className":1859},[],[1861],{"type":26,"value":239},{"type":26,"value":91},{"type":21,"tag":84,"props":1864,"children":1866},{"className":1865},[],[1867],{"type":26,"value":232},{"type":26,"value":91},{"type":21,"tag":84,"props":1870,"children":1872},{"className":1871},[],[1873],{"type":26,"value":246},{"type":21,"tag":1727,"props":1875,"children":1876},{},[1877,1882,1883,1888,1889,1894,1895],{"type":21,"tag":84,"props":1878,"children":1880},{"className":1879},[],[1881],{"type":26,"value":197},{"type":26,"value":91},{"type":21,"tag":84,"props":1884,"children":1886},{"className":1885},[],[1887],{"type":26,"value":211},{"type":26,"value":91},{"type":21,"tag":84,"props":1890,"children":1892},{"className":1891},[],[1893],{"type":26,"value":204},{"type":26,"value":91},{"type":21,"tag":84,"props":1896,"children":1898},{"className":1897},[],[1899],{"type":26,"value":218},{"type":21,"tag":1727,"props":1901,"children":1902},{},[1903],{"type":21,"tag":84,"props":1904,"children":1906},{"className":1905},[],[1907],{"type":26,"value":450},{"type":21,"tag":1727,"props":1909,"children":1910},{},[1911],{"type":21,"tag":84,"props":1912,"children":1914},{"className":1913},[],[1915],{"type":26,"value":464},{"type":21,"tag":1727,"props":1917,"children":1918},{},[1919],{"type":21,"tag":84,"props":1920,"children":1922},{"className":1921},[],[1923],{"type":26,"value":457},{"type":21,"tag":1727,"props":1925,"children":1926},{},[1927],{"type":21,"tag":84,"props":1928,"children":1930},{"className":1929},[],[1931],{"type":26,"value":268},{"type":21,"tag":1727,"props":1933,"children":1934},{},[1935],{"type":21,"tag":84,"props":1936,"children":1938},{"className":1937},[],[1939],{"type":26,"value":1940},"||",{"type":21,"tag":1727,"props":1942,"children":1943},{},[1944],{"type":21,"tag":84,"props":1945,"children":1947},{"className":1946},[],[1948],{"type":26,"value":507},{"type":21,"tag":1727,"props":1950,"children":1951},{},[1952,1957,1958,1963,1964,1969,1970,1975,1976,1981,1982],{"type":21,"tag":84,"props":1953,"children":1955},{"className":1954},[],[1956],{"type":26,"value":140},{"type":26,"value":91},{"type":21,"tag":84,"props":1959,"children":1961},{"className":1960},[],[1962],{"type":26,"value":147},{"type":26,"value":91},{"type":21,"tag":84,"props":1965,"children":1967},{"className":1966},[],[1968],{"type":26,"value":154},{"type":26,"value":91},{"type":21,"tag":84,"props":1971,"children":1973},{"className":1972},[],[1974],{"type":26,"value":161},{"type":26,"value":91},{"type":21,"tag":84,"props":1977,"children":1979},{"className":1978},[],[1980],{"type":26,"value":168},{"type":26,"value":91},{"type":21,"tag":84,"props":1983,"children":1985},{"className":1984},[],[1986],{"type":26,"value":175},{"type":21,"tag":1727,"props":1988,"children":1989},{},[1990,1996,1997,2003,2004],{"type":21,"tag":84,"props":1991,"children":1993},{"className":1992},[],[1994],{"type":26,"value":1995},"and",{"type":26,"value":91},{"type":21,"tag":84,"props":1998,"children":2000},{"className":1999},[],[2001],{"type":26,"value":2002},"xor",{"type":26,"value":91},{"type":21,"tag":84,"props":2005,"children":2007},{"className":2006},[],[2008],{"type":26,"value":2009},"or",{"type":21,"tag":29,"props":2011,"children":2012},{},[2013],{"type":26,"value":2014},"Understanding operator precedence is crucial for writing correct and efficient code, as it affects how expressions are evaluated. You can use parentheses to explicitly define the order of evaluation when necessary.",{"type":21,"tag":556,"props":2016,"children":2018},{"className":558,"code":2017,"language":12,"meta":8,"style":8},"$result = 10 + 5 * 2; \u002F\u002F Result is 20 due to operator precedence\n\n$result = (10 + 5) * 2; \u002F\u002F Result is 30 due to parentheses\n",[2019],{"type":21,"tag":84,"props":2020,"children":2021},{"__ignoreMap":8},[2022,2065,2072],{"type":21,"tag":565,"props":2023,"children":2024},{"class":567,"line":568},[2025,2029,2033,2037,2042,2046,2051,2056,2060],{"type":21,"tag":565,"props":2026,"children":2027},{"style":572},[2028],{"type":26,"value":1135},{"type":21,"tag":565,"props":2030,"children":2031},{"style":578},[2032],{"type":26,"value":140},{"type":21,"tag":565,"props":2034,"children":2035},{"style":583},[2036],{"type":26,"value":586},{"type":21,"tag":565,"props":2038,"children":2039},{"style":578},[2040],{"type":26,"value":2041}," +",{"type":21,"tag":565,"props":2043,"children":2044},{"style":583},[2045],{"type":26,"value":609},{"type":21,"tag":565,"props":2047,"children":2048},{"style":578},[2049],{"type":26,"value":2050}," *",{"type":21,"tag":565,"props":2052,"children":2053},{"style":583},[2054],{"type":26,"value":2055}," 2",{"type":21,"tag":565,"props":2057,"children":2058},{"style":572},[2059],{"type":26,"value":905},{"type":21,"tag":565,"props":2061,"children":2062},{"style":630},[2063],{"type":26,"value":2064},"\u002F\u002F Result is 20 due to operator precedence\n",{"type":21,"tag":565,"props":2066,"children":2067},{"class":567,"line":594},[2068],{"type":21,"tag":565,"props":2069,"children":2070},{"emptyLinePlaceholder":620},[2071],{"type":26,"value":623},{"type":21,"tag":565,"props":2073,"children":2074},{"class":567,"line":616},[2075,2079,2083,2088,2093,2097,2101,2105,2109,2113,2117],{"type":21,"tag":565,"props":2076,"children":2077},{"style":572},[2078],{"type":26,"value":1135},{"type":21,"tag":565,"props":2080,"children":2081},{"style":578},[2082],{"type":26,"value":140},{"type":21,"tag":565,"props":2084,"children":2085},{"style":572},[2086],{"type":26,"value":2087}," (",{"type":21,"tag":565,"props":2089,"children":2090},{"style":583},[2091],{"type":26,"value":2092},"10",{"type":21,"tag":565,"props":2094,"children":2095},{"style":578},[2096],{"type":26,"value":2041},{"type":21,"tag":565,"props":2098,"children":2099},{"style":583},[2100],{"type":26,"value":609},{"type":21,"tag":565,"props":2102,"children":2103},{"style":572},[2104],{"type":26,"value":1593},{"type":21,"tag":565,"props":2106,"children":2107},{"style":578},[2108],{"type":26,"value":104},{"type":21,"tag":565,"props":2110,"children":2111},{"style":583},[2112],{"type":26,"value":2055},{"type":21,"tag":565,"props":2114,"children":2115},{"style":572},[2116],{"type":26,"value":905},{"type":21,"tag":565,"props":2118,"children":2119},{"style":630},[2120],{"type":26,"value":2121},"\u002F\u002F Result is 30 due to parentheses\n",{"type":21,"tag":29,"props":2123,"children":2124},{},[2125],{"type":26,"value":2126},"Operators are fundamental to programming in PHP, and mastering their usage will allow you to write more complex and efficient code. Always consider the context in which you are using operators and be mindful of operator precedence to ensure your code behaves as expected.",{"type":21,"tag":2128,"props":2129,"children":2130},"style",{},[2131],{"type":26,"value":2132},"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":616,"depth":616,"links":2134},[2135],{"id":14,"depth":594,"text":27,"children":2136},[2137,2138],{"id":551,"depth":616,"text":554},{"id":1714,"depth":616,"text":537},"markdown","content:php:php-fundamental:operator.md","content","php\u002Fphp-fundamental\u002Foperator.md","php\u002Fphp-fundamental\u002Foperator","md",[2146,2154,2162,2167,2173,2182,2187,2192,2197,2202,2207,2216,2222,2227,2232,2237,2242,2247,2253,2261,2269,2274,2281,2286,2293,2299,2305,2313,2319,2325,2332,2338,2345,2357,2363,2368],{"_path":2147,"title":2148,"description":2149,"tags":2150,"date":2153},"\u002Fcpp","C++ \u002F CPP","C++ notes, snippets, and references",[2151,2152],"cpp","c++","2026-05-05",{"_path":2155,"title":2156,"description":2157,"tags":2158,"date":2161},"\u002Fdata-structure-algorithm\u002Farray-manipulation\u002Ffor-looping","For Looping in Python","Using for loops to manipulate arrays in Python.",[2159,13,2160],"python","arrays","2026-03-18",{"_path":2163,"title":2164,"description":2165,"tags":2166,"date":2161},"\u002Fdata-structure-algorithm\u002Farray-manipulation\u002Fwhile-looping","While Looping in Python","Using while loops to manipulate arrays in Python.",[2159,13,2160],{"_path":2168,"title":2169,"description":2170,"tags":2171,"date":2172},"\u002Fdata-structure-algorithm\u002Fassignments","Assignments","Assignments in Python for competitive programming.",[2159,13],"2026-04-10",{"_path":2174,"title":2175,"description":2176,"tags":2177,"date":2181},"\u002Fdata-structure-algorithm\u002Fbuzzword","Buzzword List DSA","Common terms and concepts in data structures and algorithms.",[2178,2179,2180],"dsa","algorithms","data-structures","2026-04-03",{"_path":2183,"title":2184,"description":2185,"tags":2186,"date":2172},"\u002Fdata-structure-algorithm\u002Fdata-type","Data Types","Data types in Python for competitive programming.",[2159,13],{"_path":2188,"title":2189,"description":2190,"tags":2191,"date":2172},"\u002Fdata-structure-algorithm\u002Fhash-map","Hash Map","Hash map implementation in Python for competitive programming.",[2159,13],{"_path":2193,"title":2194,"description":2195,"tags":2196,"date":2172},"\u002Fdata-structure-algorithm\u002Finput-output","Input and Output","Handling input and output in Python for competitive programming.",[2159,13],{"_path":2198,"title":2199,"description":2200,"tags":2201,"date":2161},"\u002Fdata-structure-algorithm\u002Fmath-library\u002Fsum","Sum Elements","Using for loops to sum elements in Python.",[2159,13,2160],{"_path":2203,"title":2204,"description":2205,"tags":2206,"date":2161},"\u002Fdata-structure-algorithm\u002Fmath-library\u002Fsummary","Summary","Summary of the math library in Python.",[2159,13,2160],{"_path":2208,"title":2209,"description":2210,"tags":2211,"date":2215},"\u002Fdocker\u002Fcheat-sheets","Docker Cheat Sheets","Cheat sheets for frequently used Docker commands and concepts",[2212,2213,2214],"docker","devops","infrastructure","2026-05-01",{"_path":2217,"title":2218,"description":2219,"tags":2220,"date":2221},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-container","Docker Container","Introduction to Docker containers and their usage",[2212,2213,2214],"2026-03-12",{"_path":2223,"title":2224,"description":2225,"tags":2226,"date":2221},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-execution","Docker Execution","Introduction to Docker execution and their usage",[2212,2213,2214],{"_path":2228,"title":2229,"description":2230,"tags":2231,"date":2221},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-image","Docker Image","Introduction to Docker images and their usage",[2212,2213,2214],{"_path":2233,"title":2234,"description":2235,"tags":2236,"date":2221},"\u002Fdocker\u002Fdocker-dasar\u002Fdocker-logging","Docker Logging","Introduction to Docker logging and their usage",[2212,2213,2214],{"_path":2238,"title":2239,"description":2240,"tags":2241,"date":2221},"\u002Fdocker\u002Fdocker-prerequisites\u002Fdocker-installation","Docker Installation","Introduction to Docker installation and their usage",[2212,2213,2214],{"_path":2243,"title":2244,"description":2245,"tags":2246,"date":2221},"\u002Fdocker\u002Fresources","Docker Resources","Collection of Docker resources for learning and reference",[2212,2213,2214],{"_path":2248,"title":2249,"description":2250,"tags":2251,"date":2153},"\u002Fjava","Java","Java notes, snippets, and references",[2252],"java",{"_path":2254,"title":2255,"description":2256,"tags":2257,"date":2221},"\u002Fjavascript\u002Fpromises","Promise Patterns","Common JavaScript promise patterns and async\u002Fawait usage",[2258,2259,2260],"javascript","frontend","async",{"_path":2262,"title":2263,"description":2264,"tags":2265,"date":2153},"\u002Fjenkins","Jenkins","Jenkins notes, snippets, and references",[2266,2267,2268],"jenkins","ci","cd",{"_path":2270,"title":2271,"description":2272,"tags":2273,"date":2161},"\u002Fphp\u002Farrays","PHP Array Functions","Essential PHP array functions and patterns",[12,13,2160],{"_path":2275,"title":2276,"description":2277,"tags":2278,"date":2280},"\u002Fphp\u002Fpatterns\u002Fsingleton","Singleton Pattern","Implementing the singleton pattern in PHP",[12,2279,13],"patterns","2026-03-13",{"_path":2282,"title":2283,"description":2284,"tags":2285,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Farray-map","PHP Array and Map","Essential PHP array and map functions and their usage",[12,13,2160],{"_path":2287,"title":2288,"description":2289,"tags":2290,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Fcasting-convertions","PHP Casting and Conversions","Learning about PHP casting and conversions",[12,13,2291,2292],"casting","conversions",{"_path":2294,"title":2295,"description":2296,"tags":2297,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Fcomments","PHP Comments","Essential PHP comment operations",[12,13,2298],"comments",{"_path":2300,"title":2301,"description":2302,"tags":2303,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Fdatatypes","PHP Data Types","Essential PHP data types and their usage",[12,13,2304],"data types",{"_path":2306,"title":2307,"description":2308,"tags":2309,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Fexpression-statement-block","PHP Expressions, Statements, and Blocks","Essential PHP expressions, statements, and blocks",[12,13,2310,2311,2312],"expressions","statements","blocks",{"_path":2314,"title":2315,"description":2316,"tags":2317,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Fflow-control","PHP Flow Control","Essential PHP flow control structures and patterns",[12,13,2318],"flow control",{"_path":2320,"title":2321,"description":2322,"tags":2323,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Ffunctions","PHP Functions","Essential PHP functions and their usage",[12,13,2324],"functions",{"_path":2326,"title":2327,"description":2328,"tags":2329,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Finclude-require","PHP Include and Require","Understanding PHP include and require statements",[12,13,2330,2331],"include","require",{"_path":2333,"title":2334,"description":2335,"tags":2336,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Fintroduction","PHP Introduction","An introduction to PHP programming language and its fundamentals",[12,13,2337],"introduction",{"_path":2339,"title":2340,"description":2341,"tags":2342,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Foutput-input","PHP Output & Input","Learning about PHP output and input methods",[12,13,2343,2344],"output","input",{"_path":2346,"title":2347,"description":2348,"tags":2349,"date":15},"\u002Fphp\u002Fphp-fundamental\u002Fvariables","PHP Variables","Essential PHP variables, constants, magic constants, and variable scope",[12,13,2350,2351,2352,2353,2354,2355,2356],"variables","constants","magic constants","scope","global","local","static",{"_path":2358,"title":2359,"description":2360,"tags":2361,"date":2362},"\u002Fphp\u002Freferences","PHP References (&)","Useful PHP reference snippets and patterns",[12,13],"2026-03-19",{"_path":2364,"title":2365,"description":2366,"tags":2367,"date":2153},"\u002Fpython","Python","Python notes, snippets, and references",[2159],{"_path":2369,"title":2370,"description":2371,"tags":2372,"date":2153},"\u002Frust","Rust","Rust notes, snippets, and references",[2373],"rust",[2375,2376,2377,2378,2379,2380,2381,2382,2383,2384,2385,2387,2388,2389,2390,2391,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2402,2403,2404,2405,2406,2407,2408,2409,2410,2411,2412],{"_path":2147,"title":2148,"weight":568},{"_path":2155,"title":2156,"weight":709},{"_path":2163,"title":2164,"weight":709},{"_path":2168,"title":2169,"weight":616},{"_path":2174,"title":2175,"weight":568},{"_path":2183,"title":2184,"weight":594},{"_path":2188,"title":2189,"weight":709},{"_path":2193,"title":2194,"weight":568},{"_path":2198,"title":2199,"weight":882},{"_path":2203,"title":2204,"weight":709},{"_path":2208,"title":2209,"weight":2386},100,{"_path":2217,"title":2218,"weight":882},{"_path":2223,"title":2224,"weight":913},{"_path":2228,"title":2229,"weight":891},{"_path":2233,"title":2234,"weight":934},{"_path":2238,"title":2239,"weight":709},{"_path":2243,"title":2244,"weight":568},{"_path":2248,"title":2249,"weight":568},{"_path":2254,"title":2255},{"_path":2262,"title":2263,"weight":568},{"_path":2270,"title":2271,"weight":568},{"_path":2275,"title":2276},{"_path":2282,"title":2283,"weight":701},{"_path":2287,"title":2288,"weight":664},{"_path":2294,"title":2295,"weight":616},{"_path":2300,"title":2301,"weight":636},{"_path":2306,"title":2307,"weight":680},{"_path":2314,"title":2315,"weight":709},{"_path":2320,"title":2321,"weight":718},{"_path":2326,"title":2327,"weight":741},{"_path":2333,"title":2334,"weight":568},{"_path":5,"title":9,"weight":16},{"_path":2339,"title":2340,"weight":594},{"_path":2346,"title":2347,"weight":626},{"_path":2358,"title":2359,"weight":594},{"_path":2364,"title":2365,"weight":568},{"_path":2369,"title":2370,"weight":568},1780160028571]