You could also try
echo json_encode( $results, JSON_NUMERIC_CHECK );
Some reference:
More Related Contents:
- PHP display div with select option
- Simple jQuery, PHP and JSONP example?
- PHP returning JSON to JQUERY AJAX CALL
- Sending JSON to PHP using ajax
- jQuery ajax request with json response, how to?
- Submitting JSON data via JQuery ajax.post to PHP
- Retrieve JSON POST data in CodeIgniter
- jQuery $.ajax request of dataType json will not retrieve data from PHP script
- Sending HTML Code Through JSON
- How to pass an array using PHP & Ajax to Javascript?
- Removing array index reference when using json_encode()
- Ajax call with contentType: ‘application/json’ not working
- Jquery AJAX post to PHP
- json_encode not working with a html string as value
- how to use json_encode for my output?
- Extracting data from Json in Php
- I keep getting these kind of errors in terms of HttpUrlConnection and BackGroundTask in android
- Can anyone help me what is wrong in this code ajax using with php? [closed]
- Laravel csrf token mismatch for ajax POST Request
- PHP Array to JSON Array using json_encode(); [duplicate]
- How to create a JSON object
- How to execute ajax function onbeforeunload?
- Change DIV content using ajax, php and jQuery
- How to deal with backslashes in json strings php
- How to pass a Javascript Array via JQuery Post so that all its contents are accessible via the PHP $_POST array?
- create nested JSON object in php?
- Jquery: Running AJAX locally without a webserver
- Multiple javascript/css files: best practices?
- file_get_contents throws 400 Bad Request error PHP
- How to show ajax loading gif animation while the page is loading?