All pastes #899534 Raw Edit

Sanitizaion

public php v1 · immutable
·published 2008-02-11 05:18 UTC
rendered paste body
<?php	function sanitize($string){		if(isset($string){ // Check if string is set			return trim(str_replace(array("\r","\n", "\t"),"" $string));		} else {			return FALSE; // No contents, complain				}	}?>