Answers for "how to convert a php error array to a string"

PHP
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]
Posted by: Guest on March-05-2020
0

Notice: Array to string conversion php

// suppress the Notices:
error_reporting(0);
print(array(1,2,3));    //Prints 'Array' without a Notice.
Posted by: Guest on March-05-2020

Code answers related to "how to convert a php error array to a string"

Browse Popular Code Answers by Language