PHP Error occured Array to string conversion code example
Example 1: Notice: Array to string conversion php
// Joining all the cells in the array together:
<?php
$stuff = array(1,2,3);
print implode(", ", $stuff); //prints 1, 2, 3
print join(',', $stuff); //prints 1, 2, 3
?>
Example 2: Notice: Array to string conversion php
// suppress the Notices:
error_reporting(0);
print(array(1,2,3)); //Prints 'Array' without a Notice.