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;
?>
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
More PHP 5 MCQ Questions