title: Alternative function for php deprecated sql_regcase()
body: <p>i have the code bellow:</p>
  
  <pre><code>foreach($filetypes as $filetype)
  {
    $filenum = $filenum + count(glob($root.$tree.$branch.sql_regcase($filetype),GLOB_NOSORT));
  }
  </code></pre>
  
  <p>Function sql_regcase() is deprecated. Does anyone know an alternative for <code>sql_regcase()</code> ?
  I have tried this below but i think it's not the same.</p>
  
  <pre><code>$filenum = $filenum+count(glob($root.$tree.$branch.preg_mach("/$filetype/ig"),GLOB_NOSORT));
  </code></pre>
  
  <p>Also according to this <a href="http://php.net/manual/en/reference.pcre.pattern.posix.php" rel="nofollow">http://php.net/manual/en/reference.pcre.pattern.posix.php</a> there is No equivalent function.</p>