SarkariResultess QA Bank

PHP switch statement का basic syntax क्या है? beginner developer को कैसे समझाएँ?

Other 0 Views Verified
PHP switch statement का basic syntax क्या है? beginner developer को कैसे समझाएँ? सही विकल्प चुनें और code/solution को समझें।
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

switch $status: case active

switch $status: case active
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

switcher($status) {}

switcher($status) {}
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

case $status switch {}

case $status switch {}
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified Correct Answer

switch ($status) { case 'active': echo 'Yes'; break; }

switch ($status) { case 'active': echo 'Yes'; break; }
Additional Explanation
switch multiple cases handle करता है।