title: Can only echo message witin tags that include array
body: <p>So my issue is I can only echo <code>$nf</code> witin the php tags, where the array is located. If  I try to do </p>
  
  <pre><code> &lt;?php
      $posts = array();
      while(($row = $stmt-&gt;fetch(PDO::FETCH_ASSOC)) !== false){
          $posts[] =  array(
          'post_content' =&gt; $row['post_content'],
          'likes' =&gt; $row['post_likes'],
          'time' =&gt; $row['post_date'], 
          'id' =&gt; $row['id']     
      );
          }   
  
  
      ?&gt;
      &lt;? if(count($posts) &lt; 1){
          $nf = 'No posts, Yet.';
      }
  
  ?&gt;
  &lt;?php
  
  echo $nf;
  ?&gt;
  </code></pre>
  
  <p>This won't work, but if I echo it in between the other tags it will. I'm not really sure what to do. Any help would be great. </p>