I am having a problem parsing \'jsonp\' request with php\'s json_decode function.
My questions is
a. What is the u
Callback function is for JS calls - it allows to use API's in AJAX manner, without taking care of same origin policy. When JSONP call is used in JS - browser just calls the callback function that needs to be defined on API client's side.
When you use JSONP inside PHP callback function is not needed at all. If server supports raw JSON type calls - use it, if not strip the callback function strings, in your case
$jsonData = json_decode(substr($feed, 22, -2));