curl:(51) : SSL certificate subject name does not match target host name

Add below two lines.

<?php

error_reporting(E_ALL);
ini_set('display_errors', true);


$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://XXX.XXX.XX.XXX/bankservices/process",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_SSL_VERIFYPEER => 0,
  CURLOPT_SSL_VERIFYHOST => FALSE,

  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "cache-control: no-cache",
    "content-type: application/xml",
    "postman-token: b7d1eae0-ec7d-a9ae-fb6a-19abf9ef6d59"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

Check if an array contains any element of another array in JavaScript

arr1 = ['AuditOfficer','ExecutiveOperations','BranchManager','Employee','HO','Vendor','account'];
arr2 = ['Vendor','account']; 


let found = arr1.some(r=> arr2.indexOf(r) >= 0);

console.log(found);