php code inside divs inside a php array : <p>Hi guys sorry for the bad english :)  i have this code below that echo the some divs defined inside the array
i want to include a php page (example below ) inside those divs  : </p>

<pre><code>&lt;?php $items =array(         
        '&lt;div id="o-31" class="col-sm-6 col-md-4 col-lg-3" &gt; &lt;div id="mydid"  &gt;   &lt;/div&gt;&lt;/div&gt;',  


             '&lt;div id="o-36" class="col-sm-6 col-md-4 col-lg-3"  &gt;&lt;div  class="demo-content bg-alt" &gt;.col-sm-8&lt;/div&gt;&lt;/div&gt;', 


             '&lt;div id="o-37" class="col-sm-6 col-md-4 col-lg-3"  &gt;&lt;div class="demo-content bg-alt" &gt;.col-sm-8&lt;/div&gt;&lt;/div&gt;', 


      '&lt;div id="o-38" class="col-sm-6 col-md-4 col-lg-3"&gt;&lt;div id="mydid"  &gt; &lt;/div&gt;&lt;/div&gt;'
     );

?&gt; 
      &lt;?php 
        for($i = 0; $i &lt;= 3; $i++){

        echo $items[$i];

        }
      ?&gt;
</code></pre>

<p>i cant see how i can add a php code inside the div i tried : </p>

<pre><code> '&lt;div id="o-31" class="col-sm-6 col-md-4 col-lg-3" &gt; &lt;div id="mydid"  &gt; 

         &lt;?php
      $ccc= "ff";
  $tablelink2=$_SESSION['hes_2'];
 $tabletitle2=$_SESSION['hes_1'];
 $tableimg2= $_SESSION['hes_3'];
     include('hes_2.php');
     ?&gt;

        &lt;/div&gt;&lt;/div&gt;',  
</code></pre>

<p>and </p>

<pre><code>'&lt;div id="o-31" class="col-sm-6 col-md-4 col-lg-3" &gt; &lt;div id="mydid"  &gt;'



     &lt;?php
          $ccc= "ff";
      $tablelink2=$_SESSION['hes_2'];
     $tabletitle2=$_SESSION['hes_1'];
     $tableimg2= $_SESSION['hes_3'];
         include('hes_2.php');
         ?&gt;

            '&lt;/div&gt;&lt;/div&gt;', 
</code></pre>

<p>also not working :( ? </p>
