Skip to content

Instantly share code, notes, and snippets.

View parhammmm's full-sized avatar
💻
Developing

Parham Saidi parhammmm

💻
Developing
View GitHub Profile
<?php
function explore( $path ){
$files = scandir( $path );
$files = array_slice( $files, 2);
foreach( $files as $file )
if( is_dir( $path.'/'.$file ) )
explore( $path.'/'.$file );
else
process( $path.'/'.$file );
}