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

From: Date: Mon, 23 Mar 2009 13:07:35 +0000
Subject: Re: today i found the best function I've ever seen
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-290573@lists.php.net to get a copy of this message
Do not try this at home... Igor Escobar systems analyst & interface designer www . igorescobar . com On Sat, Mar 21, 2009 at 7:23 AM, Virgilio Quilario < virgilio.quilario@gmail.com> wrote: > > 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 > >

« previous php.general (#290573) next »