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