Re: today i found the best function I've ever seen

From: Date: Sat, 21 Mar 2009 10:23:43 +0000
Subject: Re: today i found the best function I've ever seen
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-290475@lists.php.net to get a copy of this message
> if( !function_exists('clean_sql_term') ) > { >    function clean_sql_term($term) { >        return $term; >    } > } > > beautiful > hi Nathan, Nice find. You have found a very useful function. Here is how I use it to load needed PHP files that declares the function. if (!function_exists('clean_sql_term')) { require 'module.php'; } clean_sql_term($term); Above code makes sure that the function is available. Really beautiful, though jurassic but useful. Cheers, Virgil http://www.jampmark.com

« previous php.general (#290475) next »