Sha256: fbd2fe69e32edab8ebc934cd301011c9e16e8e3e7c3d863da4729d6e03a697dc
Contents?: true
Size: 267 Bytes
Versions: 75
Compression:
Stored size: 267 Bytes
Contents
<?php function slices($series, $size) { if ($size > strlen($series) || $size < 1) { throw new Exception(); } $arr = []; for ($i = 0; $i <= strlen($series) - $size; $i++) { $arr[] = substr($series, $i, $size); } return $arr; }
Version data entries
75 entries across 75 versions & 1 rubygems