title: How to add "er" after particular days of the month in php?
body: <p>I am working on a <strong>html/php</strong> code as shown below:</p>
  
  <pre><code>&lt;?php if(ICL_LANGUAGE_CODE=='fr'){  ?&gt;  /* When the page is in French */
     &lt;time datetime="&lt;?php echo esc_attr(date_format($ts, 'H:i d-m-Y')) ?&gt;"
             data-timezone="&lt;?php echo esc_attr($tz_param) ?&gt;"&gt;&lt;?php echo ucfirst(date_i18n( 'j F H:i', $ts-&gt;getTimeStamp()-(60*60*4))); ?&gt;
     &lt;/time&gt;
  &lt;?php }  ?&gt;
  </code></pre>
  
  <p>The above <strong>html/php</strong> code displays the following date/time on the webpage:</p>
  
  <pre><code>1 mars 2019 03:45   
  </code></pre>
  
  <p><strong>Problem Statement:</strong></p>
  
  <p>I am wondering what changes I should make in the <strong>html/php code</strong> above when days of the month is <code>"1"</code> then substitute <code>"1er"</code>. eg:</p>
  
  <p><code>1er mars 2019</code></p>