You cannot get this through PHP.
The network protocol is used on the stack. When making an HTTP connection, your web server uses the HTTP protocol, which is responsible for high-level communications. This protocol is implemented at the top of the TCP protocol (which provides streaming connections and port numbers), which, in turn, are implemented at the top of the IP protocol (v4 or v6, which bring IP addresses for identification), which is queued in top of the Ethernet protocol.
Ethernet - , . MAC- , MAC- . , , .
-, , , , : "", , .
-, , , , MAC- Ethernet. - ( , , , ), , MAC-, , .
-, Apache . PHP "" , Apache, Ethernet.
, MAC- - PHP .
, PHP . , , .