Alright so for some reason even with implode in place I am getting an error saying Array to string Conversion on this line
echo implode($weather['list'][0]['weather']);
Notice: Array to string conversion in
I got this notice while trying to implode an array with inner dimensions:
$arrayWithInnerDimensions = [
'first_dimension' => [
'a',
'b' => [1,2],
'c',
]
];
echo implode($arrayWithInnerDimensions['first_dimension']); //notice
echo "\n\n";
$arrayWithoutInnerDimensions = [
'first_dimension' => [
'a',
'b' => 'd',
'c',
]
];
echo implode($arrayWithoutInnerDimensions['first_dimension']); //ok
$array = array('lastname', 'email', 'phone'); $simple = implode($array);does. (can't imagine why we would want "lastnameemailphone" though)