hi,
yes, in your case, it would probably be in the assets/snippets/ directory but, actually, you can put the file wherever it sounds logical to you and then call it in your require statement with a simple
require_once MODX_BASE_PATH."assets/snippets/your_snippet_directory/your_file.php";
for example
by the way, this is very useful in many occasions when you need functions to be declared in your snippet
a snippet has great chances to be called many times in a page/ressouce and this would cause a function re-declaration error, using require_once and a distant file will avoid this
have swing