if your snippet outputs to placeholders this shouldn't be a problem.
in your snippet add:
<?php
...your_snippet_code_here...
$modx->setPlaceholder('PlaceHolderName',$yourvariable);
instead of using
upon calling the snippet your variable will be available in modx:
in the example use: [[+PlaceHolderName]]
Goodluck coding!