Skip to content

Instantly share code, notes, and snippets.

@Codenator81
Last active March 2, 2016 09:07
Show Gist options
  • Save Codenator81/42771d70641288f6176a to your computer and use it in GitHub Desktop.
Save Codenator81/42771d70641288f6176a to your computer and use it in GitHub Desktop.
Recursija
<?php
allFiles ( $dir, &$returnArr ) {
foreach( listFoldier( $dir ) as $row ) {
if( $row->isDir() ) allFiles( $dir . '/' $row, $returnArr ) else
$returnArr[] = $dir . '/' . $row;
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment