function tcno_dogrula($bilgiler){
$gonder = '<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<KisiVeCuzdanDogrula xmlns="http://tckimlik.nvi.gov.tr/WS">
<TCKimlikNo>'.$bilgiler["tcno"].'</TCKimlikNo>
<Ad>'.$bilgiler["isim"].'</Ad>
<Soyad>'.$bilgiler["soyisim"].'</Soyad>
<SoyadYok>false</SoyadYok>
<DogumGun>'.$bilgiler["dogumgun"].'</DogumGun>
<DogumGunYok>false</DogumGunYok>
<DogumAy>'.$bilgiler["dogumay"].'</DogumAy>
<DogumAyYok>false</DogumAyYok>
<DogumYil>'.$bilgiler["dogumyili"].'</DogumYil>
<CuzdanSeri>'.$bilgiler["cuzdanseri"].'</CuzdanSeri>
<CuzdanNo>'.$bilgiler["cuzdanno"].'</CuzdanNo>
<TCKKSeriNo>'.$bilgiler["tckkserino"].'</TCKKSeriNo>
</KisiVeCuzdanDogrula>
</soap:Body>
</soap:Envelope>';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://tckimlik.nvi.gov.tr/Service/KPSPublicV2.asmx");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $gonder);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: text/xml; charset=utf-8',
'SOAPAction: "http://tckimlik.nvi.gov.tr/WS/KisiVeCuzdanDogrula"',
'Content-Length: ' . strlen($gonder)
));
$gelen = curl_exec($ch);

if(curl_errno($ch)) {
echo 'CURL error: ' . curl_error($ch);
}

curl_close($ch);
return $gelen;
}

$bilgiler = array(
"isim" => $_POST['ad'],
"soyisim" => $_POST['soyad'],
"dogumyili" => $_POST['dogum_yil'],
"dogumgun" => $_POST['dogum_gun'],
"dogumay" => $_POST['dogum_ay'],
"tcno" => $_POST['tc'],
"tckkserino" => $_POST['kimlik_seri_no'],
"cuzdanseri" => $_POST['cuzdan_seri'], // Yeni alan
"cuzdanno" => $_POST['cuzdan_no'], // Yeni alan
);

$sonuc = tcno_dogrula($bilgiler);

if (strpos($sonuc, '<KisiVeCuzdanDogrulaResult>true</KisiVeCuzdanDogrulaResult>') !== false) {
echo "true";
} else {
echo "false";
}




GPT böyle demiş ama belki işine yarar.