How to avoid special characters in Yii

Hi,

Am validate pincode , In this pincode allow letters,numbers,space but don’t allow special character how?