condition IP en php

if ($_SERVER['REMOTE_ADDR'] == 'xxx.xxx.xxx.x' ) {
  //your code here
}
Calm Cottonmouth