You can get the IP address of the client accessing your PHP script using the $_SERVER['REMOTE_ADDR'] superglobal variable.
Here's how you can do it:
<?php
$clientIP = $_SERVER['REMOTE_ADDR'];
echo "Client IP Address: $clientIP";
?>
This code will output the IP address of the client accessing your PHP script.