PHP Build a Basic PHP Website (2018) Listing and Sorting Inventory Items Introducing Arrays

It looks like Task 1 is no longer passing.



echo "Today's challenge is brought to you by the ";
echo count()$letters[];
echo " letters: ";
echo "AC";
echo ".";


1 Answer

$letters is your array.

count() is a function that returns the number of items in an array. This function needs to have an argument inside the parentheses so it knows what to count. Example: count($letters). Notice here that you don't want to add square brackets at the end of the array.

Does this help you figure the rest out?