title: Problems with php display folders in template
body: <p>everyone!
  I want to display folder's name in the table in HTML template.</p>
  
  <p>PHP:</p>
  
  <pre><code>$path = "albums/";
  $albums = scandir($path);
  $skip = array('.', '..')
  
  ;
  </code></pre>
  
  <p>HTML template:</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
          &lt;th&gt;Альбом&lt;/th&gt;
          &lt;th colspan="2"&gt;Операции&lt;/th&gt;
      &lt;/tr&gt;
  
      &lt;? foreach ($albums as $album): ?&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;?php print $album ?&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;a href="#"&gt;
                  Редактировать
              &lt;/a&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;a href="#"&gt;
                  Удалить
              &lt;/a&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;? endforeach ?&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Unfortunately, I get the error like this: </p>
  
  <blockquote>
    <p>Notice: Undefined variable: album in D:\xampp\htdocs\homework\5\view\albums.html on line 20</p>
  </blockquote>
  
  <p>How can I display folders' name correctly? What was a mistake?</p>