title: Calendar Month and Displaying 4th Day in Red in PHP (Loop, Date, HTML Display Font Red)
body: <p>I'm trying to do a simple loop of the days in the month of that year. So I'm using a for loop in PHP. I assigned a date April 2013, $date = mktime(0, 0, 0, 4, 1, 2013). I also determined the numbers of days in that month, $days = date("t", $date). And then I did the loop using for loop so that for ($i = 1; $i &lt;= $d1; $i++) it'll display all the days in the month of April 2013, which is 30 days (output: 1, 2, 3,  <strong>4</strong>, 5....30). I'd like to display this in  HTML so that it'll look like a calendar month of April 2013 (which I can figure out later). However, I think I have this "writer's block" per se (or programming block so on). I want to display the so that when $i = 4, displays separately with a red color indicating that it is a special day. This is my main thing I'm stuck with. My code is as follows:</p>
  
  <pre><code>$date = mktime(0, 0, 0, 4, 1, 2013);
  $days =  date("t", $date);
  
  for ($i = 1; $i &lt;= $days; $i++) { echo $i; } // except when $i = 4, echoes it as red/bold
  </code></pre>
  
  <p>Any ideas? Thanks in advance.</p>