comprehensive post php unit conversion