Answers for "notice: array to string conversio in php"

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

Browse Popular Code Answers by Language