When writing a snippet (or TV or anything else, for that matter) and you write a function, make sure to enclose the function definition in a conditional. For example, a function in a snippet named MySnippet could have:
if(!function_exists(MSmyFunction)) {
function MSmyFunction() {
...
} // end MSmyFunction
} // end function_exists
If somebody wants to call your snippet more than once on the same page, or in a template, now they can. Otherwise, if a function is already defined by the first use of the snippet, PHP will throw an error when it’s defined again in the second use of the function.
Also, it’s a good idea to somehow use your snippet name in all of your function names so there isn’t as much chance of somebody else’s snippet having a function of the same name that could cause a conflict.