function matchPackageVersion($cur_ver, $for)
// Setup an array of versions.
foreach ($versions as $ver)
{
// A wildcard (*) version.
{
// Add a range to the end of $versions.
}
// Check if there is a range.
{
// You can only have one dash for a range. Otherwise it would be rangeS.
{
return true;
}
// Uh oh, there are two or more dashes in this!
else
{
foreach ($range as $range)
{
$start = $range;
else
{
}
$start = $range;
}
}
}
else
// Return true if we found the current version in the list of versions.
return true;
}
return false;
}