Why we use
header('Content-Type: application/json');
Before
echo json_encode($data)
in the web services in php
If I will not use header('Content-Type: application/json'); what is its disadvantage?
Help will be appreciated
Aucun commentaire:
Enregistrer un commentaire