Values separated by commas are sent to http in curl and json

default value

2018/04/16, 2018/04/17, 2018/04/18, 2018/04/19, 2018/04/20, 2018/04/21, 2018/04/28

when I deal with it on the other side
how to convert it to array and send json to the specified http? Using curl

$data = array(
    "date" => $date
  );
  $data_string = json_encode($data);
  $ch = curl_init($api_signin);
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
  curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json"));
  $result = curl_exec($ch);
  curl_close($ch);

$date how to write this?

Feb.27,2021

$data = array('2018/04/16','2018/04/17','2018/04/18','2018/04/19','2018/04/20','2018/04/21','2018/04/28');
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bcafaa-30a4a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bcafaa-30a4a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?