Array to string conversion code example
Example 1: Notice: Array to string conversion php
$stuff = array(1,2,3);
print_r($stuff);
$stuff = array(3,4,5);
var_dump($stuff);
Example 2: turn array into string
const elements = ['Fire', 'Air', 'Water'];
console.log(elements.join());
console.log(elements.join(''));
console.log(elements.join('-'));
Example 3: Notice: Array to string conversion php
// Joining all the cells in the array together:
<?php
$stuff = array(1,2,3);
print implode(", ", $stuff);
print join(',', $stuff);
?>