h5bp/caniuse — comment on commit 5f9424c00e817f565c1644b9204efb95df702230
File:  line 0
By mathiasbynens:

In PHP, I generally use something like this:

```php
'some_value');

echo ($callback ? $callback . '(' : '') . json_encode($data) . ($callback ? ')' : '');

?>
```

Note that you can use either `application/javascript` (the technically correct one) or `text/javascript` for JavaScript (anything works).