Home / Questions / Other PHP anonymous function कैसे बनाते हैं? में developers की common mistake क्या है? Other 0 Views Verified PHP anonymous function कैसे बनाते हैं? में developers की common mistake क्या है? सही विकल्प चुनें और code/solution को समझें। #php #core php #php programming #php tutorial #php error #php solution #backend #developer Sarkari Result QA Bank Editorially reviewed exam information Share
Verified Correct Answer $fn = function($x) { return $x * 2; }; $fn = function($x) { return $x * 2; }; Additional Explanation Anonymous function function(...) syntax से बनता है।
Verified $fn = lambda($x) => $x*2; $fn = lambda($x) => $x*2; Additional Explanation यह विकल्प सही Core PHP solution नहीं है।
Verified $fn = anonymous($x) {} $fn = anonymous($x) {} Additional Explanation यह विकल्प सही Core PHP solution नहीं है।
Verified function => $fn($x) {} function => $fn($x) {} Additional Explanation यह विकल्प सही Core PHP solution नहीं है।