Don't worry... figured it out!

Code:
function checkIPAddress($ipAddressCheck, $networkAddress, $subnetMask)
{
  $subnetBin=(pow(2,32)-1)-(pow(2,32-$subnetMask)-1);
  $firstIP=ip2long($networkAddress) & ($subnetBin);
  $NetworkLength=pow(2,32-$subnetMask)-1;
  $longIPAddressCheck = ip2long($ipAddressCheck);

  if ($longIPAddressCheck > $firstIP && $longIPAddressCheck < ($firstIP + $NetworkLength))
  {
    return "true";
  }
  else
  {
    return "false";
  }

}