Answers for "php foreach post as $key=>$value error notice: array to string conversion when echo value"

PHP
1

Notice: Array to string conversion php

// use the builtin php function print_r or var_dump:
$stuff = array(1,2,3);
print_r($stuff);
$stuff = array(3,4,5);
var_dump($stuff);
Posted by: Guest on March-05-2020
0

Notice: Array to string conversion php

$stuff = array(1,2,3);
print_r($stuff);
$stuff = array(3,4,5);
var_dump($stuff);
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 "php foreach post as $key=>$value error notice: array to string conversion when echo value"

Browse Popular Code Answers by Language