title: Pass dynamic value to php and get date
body: <pre><code>var dt = 6;
  var dtyp = M;
  </code></pre>
  
  <p>need to pass this values to <code>strtotime</code> in php to get date after 6 months <code>if dtyp = D</code> need to add 6 days to current date, <code>if dtyp = Y</code> need to add 6 years to current date.</p>
  
  <pre><code>&lt;?php echo date("d/m/Y", strtotime("+6 days"));?&gt; 
  
  $.each(data.response.duration,function(a,b){
      var dt = b.exp_dur;
      var dtyp = b.exp_type;
      $('.after_dat').val('&lt;?php echo date("d/m/Y", strtotime("+.'dt'. days"));?&gt;')
  });
  </code></pre>
  
  <p><code>dt</code> and <code>dtyp</code> will be dynamic getting from db.</p>