title: PHP How to display "Text Empty" if all files in directory are empty?
body: <p>Assume in my directory "my_dir/" contains files below:</p>
  
  <pre><code>file1.php
  file2.php
  file3.php
  ...
  </code></pre>
  
  <p>And assume each files is not empty..</p>
  
  <pre><code>&lt;div id="file_data"&gt;
  &lt;?php $my_dir = glob("my_dir/*.php"); ?&gt;  
  
  &lt;!-- This will display all files --&gt;
  &lt;?php foreach($my_dir as $file) { ?&gt;
  &lt;?php include $file; ?&gt;&lt;br&gt;
  &lt;?php } ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>If all or some file is not empty it will display some information in my page, but how to display custom text if all files are empty? I don't want in my page display no data/information.</p>
  
  <p>Thanks for help, I am very beginner in programmer =)</p>