title: Adding a character in the middle of a string
body: <p>There's probably a simple solution to this that will cause a facepalm. I have time stored as a 4 character long string ie 1300.</p>
  
  <p>I'm trying to display that string as 13:00. I feel like there has to be a solution to this that is more elegant than what I'm doing at the moment.</p>
  
  <p>I currently have:</p>
  
  <pre><code>$startTime = get_field($dayStart, $post-&gt;ID);
  $endTime = get_field($dayEnd, $post-&gt;ID);
  
          for ($x=0; $x = 4; $x++){
  
              if(x == 2){
                  $ST .= ':';
                  $ET .= ':';
              } else {
                  $ST .= $startTime[x];
                  $ET .= $endTime[x];
              }
  
          }
  
  $startTime = $ST;
  $endTime = $ET;
  </code></pre>
  
  <p>The string will always be 4 characters long.</p>