title: How to add 2 months in a date in PHP inside an HTML codes?
body: <p>I'm new to PHP and I want to add 2 months to a specific date in an html code. How can I do it? Please guide me through, </p>
  
  <p>Here's the code I use: </p>
  
  <pre><code>    private function inputExpiryDate() {
      $value = $this-&gt;expiryDate;
      $html = "";
      $html .= '&lt;label for="expirydate"&gt;Expiry Date:&lt;/label&gt;';
      $html .= '&lt;input type="text" readonly name="expirydate" id="expirydate" value="'.$value.'"&gt;';
      $html .= '&lt;input type="button" id="expirydatebutton" onclick="getExpiryDate()"&gt;' . PHP_EOL;
      return $html;
  }
  </code></pre>
  
  <p>Question is how will I add this </p>
  
  <pre><code>$date = strtotime(date("Y-m-d", strtotime($date)) . " +2 month"); ?? 
  </code></pre>
  
  <p>Any help is really appreciated.</p>