title: PHP associative array not printing 1st and 5th keys
body: <p>I have the PHP associative array as shown below, with mysql queries and filenames as keys and values:</p>
  
  <pre><code>$extract_queries = array( 
      "SELECT  rec.time_stamp, rec.day_chan1, rec.day_chan2, rec.day_chan3 FROM ( SELECT ".$this-&gt;table_name.".*, DATE(time_stamp) AS mydate, TIME(time_stamp) AS mytime FROM ".$this-&gt;table_name." WHERE TIME(time_stamp) &gt;= '07:00:00' AND TIME(time_stamp) &lt;= '07:59:59') as rec JOIN ( SELECT DATE(time_stamp) as mydate, MAX(TIME(time_stamp)) as mytime FROM ".$this-&gt;table_name." WHERE TIME(time_stamp) &gt;= '07:00:00' AND TIME(time_stamp) &lt;= '07:59:59' GROUP BY DATE(time_stamp) ) as max_times ON max_times.mydate = rec.mydate and max_times.mytime = rec.mytime ORDER BY rec.mydate" =&gt; $current_user."-WinterNightTime1", 
      "SELECT  rec.time_stamp, rec.day_chan1, rec.day_chan2, rec.day_chan3 FROM ( SELECT ".$this-&gt;table_name.".*, DATE(time_stamp) AS mydate, TIME(time_stamp) AS mytime FROM ".$this-&gt;table_name." WHERE TIME(time_stamp) &gt;= '07:00:00' AND TIME(time_stamp) &lt;= '07:59:59') as rec JOIN ( SELECT DATE(time_stamp) as mydate, MAX(TIME(time_stamp)) as mytime FROM ".$this-&gt;table_name." WHERE TIME(time_stamp) &gt;= '07:00:00' AND TIME(time_stamp) &lt;= '07:59:59' GROUP BY DATE(time_stamp) ) as max_times ON max_times.mydate = rec.mydate and max_times.mytime = rec.mytime ORDER BY rec.mydate" =&gt; $current_user."-SummerNightTime1",
      "SELECT  rec.time_stamp, rec.day_chan1, rec.day_chan2, rec.day_chan3 FROM ( SELECT ".$this-&gt;table_name.".*, DATE(time_stamp) AS mydate, TIME(time_stamp) AS mytime FROM ".$this-&gt;table_name." WHERE TIME(time_stamp) &gt;= '16:00:00' AND TIME(time_stamp) &lt;= '16:59:59') as rec JOIN ( SELECT DATE(time_stamp) as mydate, MAX(TIME(time_stamp)) as mytime FROM ".$this-&gt;table_name." WHERE TIME(time_stamp) &gt;= '16:00:00' AND TIME(time_stamp) &lt;= '16:59:59' GROUP BY DATE(time_stamp) ) as max_times ON max_times.mydate = rec.mydate and max_times.mytime = rec.mytime ORDER BY rec.mydate" =&gt; $current_user."-WinterDayTime1",
      "SELECT  rec.time_stamp, rec.day_chan1, rec.day_chan2, rec.day_chan3 FROM ( SELECT ".$this-&gt;table_name.".*, DATE(time_stamp) AS mydate, TIME(time_stamp) AS mytime FROM ".$this-&gt;table_name." WHERE TIME(time_stamp) &gt;= '18:00:00' AND TIME(time_stamp) &lt;= '18:59:59') as rec JOIN ( SELECT DATE(time_stamp) as mydate, MAX(TIME(time_stamp)) as mytime FROM ".$this-&gt;table_name." WHERE TIME(time_stamp) &gt;= '18:00:00' AND TIME(time_stamp) &lt;= '18:59:59' GROUP BY DATE(time_stamp) ) as max_times ON max_times.mydate = rec.mydate and max_times.mytime = rec.mytime ORDER BY rec.mydate" =&gt; $current_user."-WinterPeakTime",
      "SELECT  rec.time_stamp, rec.day_chan1, rec.day_chan2, rec.day_chan3 FROM ( SELECT ".$this-&gt;table_name.".*, DATE(time_stamp) AS mydate, TIME(time_stamp) AS mytime FROM ".$this-&gt;table_name." WHERE TIME(time_stamp) &gt;= '22:00:00' AND TIME(time_stamp) &lt;= '22:59:59') as rec JOIN ( SELECT DATE(time_stamp) as mydate, MAX(TIME(time_stamp)) as mytime FROM ".$this-&gt;table_name." WHERE TIME(time_stamp) &gt;= '22:00:00' AND TIME(time_stamp) &lt;= '22:59:59' GROUP BY DATE(time_stamp) ) as max_times ON max_times.mydate = rec.mydate and max_times.mytime = rec.mytime ORDER BY rec.mydate" =&gt; $current_user."-WinterDayTime2",
      "SELECT  rec.time_stamp, rec.day_chan1, rec.day_chan2, rec.day_chan3 FROM ( SELECT ".$this-&gt;table_name.".*, DATE(time_stamp) AS mydate, TIME(time_stamp) AS mytime FROM ".$this-&gt;table_name." WHERE TIME(time_stamp) &gt;= '22:00:00' AND TIME(time_stamp) &lt;= '22:59:59') as rec JOIN ( SELECT DATE(time_stamp) as mydate, MAX(TIME(time_stamp)) as mytime FROM ".$this-&gt;table_name." WHERE TIME(time_stamp) &gt;= '22:00:00' AND TIME(time_stamp) &lt;= '22:59:59' GROUP BY DATE(time_stamp) ) as max_times ON max_times.mydate = rec.mydate and max_times.mytime = rec.mytime ORDER BY rec.mydate" =&gt; $current_user."-SummerDayTime",
      "SELECT  rec.time_stamp, rec.day_chan1, rec.day_chan2, rec.day_chan3 FROM ( SELECT ".$this-&gt;table_name.".*, DATE(time_stamp) AS mydate, TIME(time_stamp) AS mytime FROM ".$this-&gt;table_name." WHERE TIME(time_stamp) &gt;= '23:00:00' AND TIME(time_stamp) &lt;= '23:59:59') as rec JOIN ( SELECT DATE(time_stamp) as mydate, MAX(TIME(time_stamp)) as mytime FROM ".$this-&gt;table_name." WHERE TIME(time_stamp) &gt;= '23:00:00' AND TIME(time_stamp) &lt;= '23:59:59' GROUP BY DATE(time_stamp) ) as max_times ON max_times.mydate = rec.mydate and max_times.mytime = rec.mytime ORDER BY rec.mydate" =&gt; $current_user."-WinterNightTime2",
      "SELECT  rec.time_stamp, rec.day_chan1, rec.day_chan2, rec.day_chan3 FROM ( SELECT ".$this-&gt;table_name.".*, DATE(time_stamp) AS mydate, TIME(time_stamp) AS mytime FROM ".$this-&gt;table_name." WHERE TIME(time_stamp) &gt;= '23:00:00' AND TIME(time_stamp) &lt;= '23:59:59') as rec JOIN ( SELECT DATE(time_stamp) as mydate, MAX(TIME(time_stamp)) as mytime FROM ".$this-&gt;table_name." WHERE TIME(time_stamp) &gt;= '23:00:00' AND TIME(time_stamp) &lt;= '23:59:59' GROUP BY DATE(time_stamp) ) as max_times ON max_times.mydate = rec.mydate and max_times.mytime = rec.mytime ORDER BY rec.mydate" =&gt; $current_user."-SummerNightTime2"
  );
  </code></pre>
  
  <p>My problem is when I print_r($extract_queries);
  The 1st and 5th keys and their values are missing from the array and even in a foreach loop they're being escaped.</p>
  
  <p>How do I get those values?</p>