I'm writing a php api with methods wired together by php routing, such that
dev.myphp.com/user/login?email=sdfsdf@fdfd.com&password=d514
will return a json/xml response.
However, I do not know how to return this response, even if I use json_encode or xml_encode to conver the data string.
Do I just need to uniquely echo the JSON string out?