so I’m trying to create an API in PHP that can store discord server id along with some stuffs into a json file. But for some reason, it keeps rounding the discord server id. Doesn’t matter what I try, it keeps doing that.
<code>if (isset($data['server_id']) && isset($data['username']) && isset($data['email']) && isset($data['date'])) {
$server_id = strval($data['server_id']);
$username = $data['username'];
$email = $data['email'];
$date = $data['date'];
</code>
<code>if (isset($data['server_id']) && isset($data['username']) && isset($data['email']) && isset($data['date'])) {
$server_id = strval($data['server_id']);
$username = $data['username'];
$email = $data['email'];
$date = $data['date'];
</code>
if (isset($data['server_id']) && isset($data['username']) && isset($data['email']) && isset($data['date'])) {
$server_id = strval($data['server_id']);
$username = $data['username'];
$email = $data['email'];
$date = $data['date'];
For example, If I send ‘395177045023391744’ as the discord server id, it will store as ‘395177045023391700’ or something like that
This is what I have right now. Any idea on how to fix this?