You have already completed these exercises!
Do you want to take them again?
You completed the PHP Add Array Items Exercises from W3Schools.com
Share on:
For the following array:$fruits = array('Apple', 'Banana', 'Orange');What will be a correct syntax to add a new array item?
$fruits = array('Apple', 'Banana', 'Orange');
$fruits[] = 'Pineapple';
add_item($fruits, 'Pineappple');
$fruits.add_item('Pineappple');