title: change the value of a json encode variable
body: <p>I set a jquery varibale with a php array:</p>
  
  <pre><code>&lt;?
  $lastMessageIDs = array(88,99);
  ?&gt;
  
  var lastMessageIDs = '&lt;? echo json_encode($lastMessageIDs); ?&gt;';
  console.log(lastMessageIDs)
  </code></pre>
  
  <p>The result of console.log:</p>
  
  <pre><code>[88,99]
  </code></pre>
  
  <p>How can I change (for example) the value 99 to 77?</p>