MCQs > IT & Programming > PHP 5 > if(a==b) { echo '1' } else { echo '2' } can be replaced with?

PHP 5 MCQs

if(a==b) { echo '1'; } else { echo '2'; } can be replaced with?

Answer

Correct Answer: (a==b) ? '1' : '2';

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it