title: Make an Array from another array with using implode()
body: <p>I have an array.</p>
  
  <p>my array:</p>
  
  <pre><code>while($rowop = mysql_fetch_array($resultop))
  {
      $info[] = array(
          'status'=&gt;$rowop[2],
          'day' =&gt; $rowop[3],
          'from'=&gt;$rowop[4],
          'to' =&gt; $rowop[5],
          'mon'=&gt;$rowop[6],
          'tue' =&gt; $rowop[7],
          'wed'=&gt;$rowop[8],
          'thu' =&gt; $rowop[9],
          'fri'=&gt;$rowop[10],
          'sat' =&gt; $rowop[11],
          'sun'=&gt;$rowop[12]
      );
  }
  </code></pre>
  
  <p>value of <code>$rowop[6],$rowop[7],$rowop[8],$rowop[9],$rowop[10],$rowop[11],$rowop[12]</code> can be <code>'on'</code> or <code>'off'</code>.  I want to show only those rows which contain <code>'off'</code> value.  array will be same as:</p>
  
  <pre><code>'status'=&gt;'ok',
  'day' =&gt;'all',
  'from'=&gt;'12pm',
  'to' =&gt; '8am',
  'off day'=&gt;'tue,wed,thu,sat,sun'
  </code></pre>
  
  <p>Any one please give me Idea.if possible give example</p>