saving . . . saved Displays Notice alongwith output has been deleted. Displays Notice alongwith output has been hidden .
Displays Notice alongwith output
Title
Question
I am using XAMPP 5.5.19. While executing the array.php file, I am getting the following: "Notice: Array to string conversion in /opt/lampp/htdocs/phpacademy/array.php on line 5" alongwith the output on the browser.

Why am I getting the notice when in video it is showing only output?


PHP-and-MySQL Arrays 01-02 min 20-30 sec 26-04-19, 5:49 p.m. priyayadav961

Answers:

Kindly compare you code with the code given in the Code Files link. This may help to rectify the error.
24-02-20, 3:27 p.m. pravin1389


<?php
$days = array("Monday","Tuesday","Wednesday","Thursday","Friday");
print_r($days);
?>
17-03-21, 3:12 p.m. IndraKavin


Log-in to answer to this question.