if(strtolower($primavar) == strtolower($secondavar)) {
//TRUE..
}else{
//FALSE..
}