mercredi 22 juin 2016

How to check special character in array?

I wont to create a condition for special character.If we find a special character then display error message otherwise display success message. I wont to check special character in array and my array is below :

Array
(
 [0] => KAYA LIMITED
 [1] => *^%$32407
 [2] => 104810170620123
 [3] => 104810170620123
 [4] => 
 [5] => *)@!#CID010
 [6] => HDFC Bank
 [7] => 2016-06-14 08:17:49   
 [8] => 840
 [9] => INR
}

So I wont condition like as.

if(Special char found){
   echo "Special char found";
}else{
   echo "Special char not found";
}

So how can I do this please help me.

Aucun commentaire:

Enregistrer un commentaire