You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method names should be declared in camelCase. You should rename this class to comply with PSR-1.
*
* \param string $directory The directory to search for files.
* \param mixed $extensions An array of strings, the extensions to look for.
* \return A list of files that have the appropriate extension.
*/
functionget_files_by_extension($directory, $extensions)
{
if (is_string($extensions))
$extensions = array($extensions);
$files = array();