You've passed the arguments to explode in the wrong order, it should be
$boom = explode("$user", $open);
anyway here is a simple piece of code get the group
$boom = explode("$user:", $open);
$boom = explode("group: ", $boom[1]);
$boom = explode("\n", $boom[1]);
echo $boom[0];