$data = [
'email' => $_POST['email'],
'name' => $_POST['name'],
'phone' => $_POST['phone'],
];
/* Store the data */
Database::insert('data', [
'data' => json_encode($data),
]);
{"email":"email@gmail.com","name":"","phone":"8888"}