How to return Multiple data from PHP script using AJAX, What is json encoding, what is parseJSON,
#ReturnMultipleDataFromPHPScriptUsingAJAX,#JsonEncoding,#ParseJSON,#HowToDoThis
For further discussion join us on Facebook:---
/ 1184520091737540
json_encode:
The json_encode() function is an inbuilt function in PHP which is used to convert PHP array or object into JSON representation. ... $value: It is a mandatory parameter which defines the value to be encoded.
In PHP, json_encode() is used to convert PHP supported data type into JSON formatted string to be returned as a result of JSON encode operation. This function accepts the following set of arguments. Data to be encoded. Options with JSON encode constants to reflect effects on encoding behavior.
$.parseJSON():
Parses a string containing JSON and returns the de-serialized object.
syntax:
$.parseJSON(text):
Parses a string containing JSON and returns the de-serialized object.
In Minified builds without Internet Explorer 7 compatibility, the browser's built-in function JSON.parse is used for de-serialization.
Only if you have a legacy-build without IE7 support, and you are actually running on IE7 or earlier, Minified will actually use its own implementation. Because of subtle differences between the browser implementation and Minified's own you need to test your code thoroughly in this constellation, but but it is a recommended security practise to use the browser implementation whenever possible.