function determineNumberofChunk(int $dataCount,int $numberOfItemsPerChunk)
{
$size = (int) ceil($dataCount / $numberOfItemsPerChunk);
if ($size <= 0 || $dataCount === $numberOfItemsPerChunk) {
return 1;
}
return $size;
}
Last active
October 10, 2019 07:48
-
-
Save ManojKiranA/ac3f391f503c994684ce6ef69bb190de to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment