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";
}
?>
Correct Answer:
32
7
-2
is a test.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More PHP 5 MCQ Questions