Notice: Array to string conversion in C:\xampp\htdocs\respiration\InterfacciaTest.php on line 7 Array code example
Example 1: Notice: Array to string conversion php
// Use json_encode to collapse the array to json string:
$stuff = array(1,2,3);
print json_encode($stuff); //Prints [1,2,3]
Example 2: Notice: Array to string conversion php
$stuff = array(1,2,3);
print_r($stuff);
$stuff = array(3,4,5);
var_dump($stuff);