When I post data to a function in php page, it continues to run over all lines.
I mean while debugging I retrieve my data with echo json_encode(..)
And continue in next line to debug. So I use exit to stop it. But it means I have to use exit each echo..
echo json_encode($resultData);
exit; //if I don't use this, interprets goes on
In real scenario, I though it will improve performance because I don't need php interpreter check the other lines.. or I have misunderstood completely on this?
exitstop the script running further...To send data to client there are too many possible ways.return json_encode($resultData);