getUrlParam returns the value of a URL parameter. The simple snippet uses PHP's $_GET and runs a FILTER_SANITIZE_STRING on any strings passed to sanitize the value. Options include allowing only integers and setting a maximum size.
A snippet to return a field or a TV value from a specified resource. TV values returned can be processed or unprocessed. getResourceField can be easily combined with UltimateParent or other calls for added functionality.