mardi 26 janvier 2016

Why header('Content-Type: application/json'); in our web service?

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