MCQs > IT & Programming > PHP 5 > $st = echo 'At index -4, the character is $st[-4].', PHP_EOL; $st[-3] = 'o'; echo 'Replacement at index -3 to o gives $st.', PHP_EOL; ?>

PHP 5 MCQs

What will be the output of the following PHP 7.1 code?

$st = echo "At index -4, the character is $st[-4].", PHP_EOL;

$st[-3] = 'o';

echo "Replacement at index -3 to o gives $st.", PHP_EOL;

?>

Answer

Correct Answer:

At index -4, the character is r.

Replacement at index -3 to o gives stroke.


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