Are you sure you understand what the law actually does?
I found this summary, which says nothing about the officer inspecting the phone or obtaining the phone records. It does say it is a $50, no-points ticket. Seems ridiculous to think the district attorney will be subpeonaing phone records to prosecute a $50 citation.
"What the Law Does
The law prohibits as a primary offense any driver from using an Interactive Wireless Communication Device (IWCD) to send, read or write a text-based communication while his or her vehicle is in motion.
Defines an IWCD as a wireless phone, personal digital assistant, smart phone, portable or mobile computer or similar devices that can be used for texting, instant messaging, emailing or browsing the Internet.
Defines a text-based communication as a text message, instant message, email or other written communication composed or received on an IWCD.
Institutes a $50 fine for convictions under this section.
Makes clear that this law supersedes and preempts any local ordinances restricting the use of interactive wireless devices by drivers.
The penalty is a summary offense with a $50 fine, plus court costs and other fees.
The violation carries no points as a penalty and will not be recorded on the driver record for non-commercial drivers. It will be recorded on commercial drivers’ records as a non-sanction violation.
The texting ban does NOT include the use of a GPS device, a system or device that is physically or electronically integrated into the vehicle, or a communications device that is affixed to a mass transit vehicle, bus or school bus. The law does not authorize the seizure of an IWCD."
I also found this news story which quotes some police chiefs who apparently think their officers cannot look at your phone.
Texting-while-driving ban starts in Pennsylvania this week; police have enforcement concerns | lehighvalleylive.com
"If we can prove it, we'll enforce it or attempt to enforce it," Wilson Borough police Chief Steve Parkansky said. "However, it's going to be very difficult. Short of someone admitting they were texting, there's not much we can do. We can't look at the phone, we can't seize the phone, so our hands are really tied."
I don't know what the law actually says, that's up to you (the OP) to figure out. I
am just suggesting that you should do the necessary work to figure it out. Might take you half an hour on Google if you are really slow.