<?php
	$OKmassive = [
		'id' => '666',
		'name' => 'Petyan',
		'age' => '18',
		'email' => 'bitard@gmail.com',
		'password' => '1488',
		'birthday' => '11.09.2001',
		'ip' => '127.0.0.0',
		'time' => '02:39',
		'token' => 'chto?',
		'source' => 'www.2ch.hk/b'
	];
	$BADmassive = [
		'id' => '666',
		'sex' => 'Petyan',
		'age' => '18',
		'email' => 'bitard@gmail.com',
		'password' => '1488',
		'birthday' => '11.09.2001',
		'ip' => '127.0.0.0',
		'time' => '02:39',
		'token' => 'chto?',
		'source' => 'www.2ch.hk/b'
	];
	
	function checking($mas){
		$rightKeys = ['id', 'name', 'age', 'email',
					'password', 'birthday', 'ip',
					'time', 'token', 'source'];
		$i = 0;
		foreach($mas as $key => $data){
			$a = ($key != $rightKeys[$i])? "suka" : "ok";
			if ($a == "suka"){
				return "pizdec";
			}
			$i++;
		}
		return "zaebis";
	}
	
	$result = checking($OKmassive);
	echo "$result";
?>