title: How to return two separate values from an AJAX request?
body: <p>I have this site that has a countdown. Once the time is 0, I use an AJAX request from JS to then use PHP to update a new countdown and contest. In the new AJAX request, I need to return back two values: the image url and the count_down time. </p>
  
  <pre><code>$.ajax({url: "new_contest.php", success: function(result) {
      $("#count_down).time(result); 
  }); 
  </code></pre>
  
  <p>I can return the results with the success function, but then I can only return one of the results. I've also tried creating a <code>session</code> in PHP from the AJAX page and then putting a session inside a JS variable. But the process is super complicated and I feel like there is a more easy way to accomplish this...</p>
  
  <p>I don't see a big need to show my code for <code>new_contest.php</code> (AJAX page), all the code on that page works towards outputting those two needed values :)</p>