MCQs > IT & Programming > PHP 5 > Find the output. namespace A\B\C; const E_ERROR = 32; function strlen($s) { return \strlen($s) - 5; } echo E_ERROR, '\n'; echo INI_ALL, '\n'; echo strlen( if (is_array('abc')) { echo 'is an example.\n'; } else { echo 'is a test.\n'; } ?>

PHP 5 MCQs

Find the output of the following PHP 7.1 code snippet.

namespace A\B\C;

const E_ERROR = 32;

function strlen($s)

{

return \strlen($s) - 5;

}

echo E_ERROR, "\n";

echo INI_ALL, "\n";

echo strlen( if (is_array('abc')) {

echo "is an example.\n";

} else {

echo "is a test.\n";

}

?>

Answer

Correct Answer:

32

7

-2

is a test.


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