Hi guys,
I would like to output my php array into this format: [1991, 6.5], [1992, 4], [1993, 5.9]
PHP array:
while ($row = mysqli_fetch_array($result))
{
$metals[] = array('year' => $row['year'],
'metal' => $row['metal'];
}
I have seen some examples of implode function but I couldn't find any that could match what I want to do.
Thanks for your help.