$variable = array("subir","Subir"); if( $variable[0] == "subir" || $variable[1] == "Subir" ){ //se cumple la condicion }