was.php
/trunk/src/collections/arrays/arrays.php |
---|
@@ -0,0 +1,13 @@ |
<?php |
########################################################################### |
## Copyright (C) Wizardry and Steamworks 2015 - License: GNU GPLv3 ## |
########################################################################### |
function wasArrayStride($a, $s) { |
return array_filter($a, |
function($e, $i) use($s) { |
return $i % $s == 0; |
}, |
ARRAY_FILTER_USE_BOTH |
); |
} |