Skip to content

Instantly share code, notes, and snippets.

@MuhammadRahman-awin
Created November 27, 2014 12:50
Show Gist options
  • Save MuhammadRahman-awin/782fbd9e0181a2b38989 to your computer and use it in GitHub Desktop.
Save MuhammadRahman-awin/782fbd9e0181a2b38989 to your computer and use it in GitHub Desktop.
$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