As you see in output, stripos can't catch _formtoken value, anyone can explain it to me with solution :
$value = ['_formtoken','expiry','version','pan','expiry','purchAmount','_formtoken','pan'];
for($i=0;$i<count($value);$i++){
if (stripos($added, $value[$i]) == false) {
echo $value[$i] . ' => Not exists in <br>';
$added .= $value[$i];
}
else {
echo $value[$i] . ' => already exists <br>';
}
}
OUTPUT :
_formtoken => Not exists in
expiry => Not exists in
version => Not exists in
pan => Not exists in
expiry => already exists
purchAmount => Not exists in
_formtoken => Not exists in
pan => already exists