I am doing a course on PHP came across for each loop and doing as guided by the instructor, but I am getting this warning while displaying all elements while instructor is not getting warning and the code is same there is no mistake.
>Solution :
You need to output $number, not $numbers.
foreach ($numbers as $number)
{
echo $number."<br>";
}
