Apple had a strong fiscal 2022 second quarter as it generated revenue of over $97 billion, led by bumper iPhone and MacBook sales.