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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux