Hapus php karakter non-upascase
$ucaseletters = preg_replace('/[^A-Z]/', '', $input);
QP2
$ucaseletters = preg_replace('/[^A-Z]/', '', $input);