PHP Code:
# Sanitize the variables, all of them are unsigned integers
$vbulletin->input->clean_array_gpc('r', array('a' => TYPE_UINT, 'b' => TYPE_UINT, 'c' => TYPE_UINT));
#After you call this function, the sanitized variables are stored in $vbulletin->GPC array
echo $vbulletin->GPC['a'] . $vbulletin->GPC['b'] . $vbulletin->GPC['c'];
# Prints '123';
Make sure you always sanitize your variables - I can't tell you how important that is!