a = [];
a[1000] = 1;
console.log(a); // [1000: 1]
a.length; // 1001
arr = ["test","two",3]; // ["test", "two", 3]
arr.length; // 3
arr.splice(0,2) // [3]
arr.length; // 1
$myIPs = array( 'x.x.x.x', 'y.y.y.y', 'z.z.z.z' );
if( ! in_array( $_SERVER['REMOTE_ADDR'], $myIPs ) ) {
header( "Location: http://www.example.ru/index.php" );
exit;
}