Home / Questions / Other PHP ternary operator कैसे लिखते हैं? beginner developer को कैसे समझाएँ? Other 0 Views Verified PHP ternary operator कैसे लिखते हैं? beginner developer को कैसे समझाएँ? सही विकल्प चुनें और 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 $label = $active ? 'Active' : 'Inactive'; $label = $active ? 'Active' : 'Inactive'; Additional Explanation Ternary condition ? true : false syntax है।
Verified $label = $active : 'Active' ? 'Inactive'; $label = $active : 'Active' ? 'Inactive'; Additional Explanation यह विकल्प सही Core PHP solution नहीं है।
Verified ternary($active,'Active','Inactive'); ternary($active,'Active','Inactive'); Additional Explanation यह विकल्प सही Core PHP solution नहीं है।
Verified $label = if $active 'Active' else 'Inactive'; $label = if $active 'Active' else 'Inactive'; Additional Explanation यह विकल्प सही Core PHP solution नहीं है।