title: How to identify in the directory the file with higher numbering and save in a variable?
body: <p>I have in a folder named files sequentially</p>
  
  <pre><code>file1
  file2
  file3
  </code></pre>
  
  <p>I know <code>glob</code> or <code>scandir</code> can list the files in a directory, but how would it be possible to identify the most current file (numbering) to sequence and save the next files with correct numbering?</p>
  
  <p>summarizing: how to identify with PHP the file with higher number and save this in a variable?</p>