Home / Questions / Other PHP cookie read कैसे करते हैं? के सही और गलत approach में क्या फर्क है? Other 0 Views Verified PHP cookie read कैसे करते हैं? के सही और गलत approach में क्या फर्क है? सही विकल्प चुनें और 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 $theme = cookie('theme'); $theme = cookie('theme'); Additional Explanation यह विकल्प सही Core PHP solution नहीं है।
Verified Correct Answer $theme = $_COOKIE['theme'] ?? 'light'; $theme = $_COOKIE['theme'] ?? 'light'; Additional Explanation $_COOKIE client cookies का array है।
Verified $theme = $COOKIE['theme']; $theme = $COOKIE['theme']; Additional Explanation यह विकल्प सही Core PHP solution नहीं है।
Verified $theme = $_COOKIE->theme; $theme = $_COOKIE->theme; Additional Explanation यह विकल्प सही Core PHP solution नहीं है।