Created
November 27, 2014 12:50
-
-
Save MuhammadRahman-awin/782fbd9e0181a2b38989 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$initial = array(1,2,3); | |
$remoteFiles = array(4,5,7); | |
$latestInitialCount = max($initial); | |
$checkRange = range($latestInitialCount,max($remoteFiles)); | |
$missing = array_diff($checkRange,$remoteFiles); // (6) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment