You have already completed these exercises!
Do you want to take them again?
You completed the PHP Indexed Arrays Exercises from W3Schools.com
Share on:
In the following array:$fruits = array('Apple', 'Banana', 'Orange');What will be a correct syntax to change the second value from 'Banana' to 'Pineapple'?
$fruits = array('Apple', 'Banana', 'Orange');
$fruits[1] = 'Pineapple';
$fruits['Banana'] = 'Pineappple';
$fruits.replace('Banana', 'Pineappple');