public static function compassAppendSelector($initial, $new) { $list = explode(',', $initial); foreach ($list as $k => $selector) { $list[$k] = trim($selector) . $new; } return new SassString(implode(', ', $list)); }