<?php $data = [ [ 1638849672000, 0.0025 ], [ 1638849732000, 0.0008 ], [ 1638849792000, 0 ], [ 1638849852000, 0 ] ]; $data = array_map(function($x) { return (object)[ "time" => $x[0], "value" => $x[1] ]; }, $data); print_r($data);
You have javascript disabled. You will not be able to edit any code.