MCQs > IT & Programming > PHP 5 > Find the output of the following PHP code. $string = echo 'The output for '$string' is '$string[-1]'.\n'; ?>

PHP 5 MCQs

Find the output of the following PHP code.

$string = echo "The output for '$string' is '$string[-1]'.\n"; ?>

Answer

Correct Answer:

The output for 'example' is 'e'.

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