I have been using jQuery and php for a while, and just wondered something. Say I do a post to php then using a json encode I return data from php. Does the memory that the php was using get cleared.
For instance say in php I put 20,000 characters in a string eg
$test['something']="20,000"; //imagine this is a big text line.
echo json_encode($test);
Then in jQuery I might have something like
$.post("test.php", {},function(data) {
alert(data.something);
},'JSON');
At the point it has returned to jQuery has the php memory been cleared of the 20,000 characters, and anything else I had in any strings?