On Fri, 7 Dec 2001, benjamin yates wrote:
> > > a way to create the same as a #define macro... man would that be nice. > > > >define() > > " > define( 'MIN(a,b)', ((a)<(b)?(a):(b)) ); ? i don't think so... if you > know a way to do it then you'll be my favorite person for the week :) > " > > is what i was about to post... then i decided to go try it and omg! > WTH, does this really work ? Wow, I would have never guessed it. <?php define('MIN(a,b)', ((a)<(b)?(a):(b)) ); $b = 444444; $a = 2; echo MIN($a, $b); ?> Very cool :) Joao -- Joćo Prado Maia <[EMAIL PROTECTED]> http://phpbrasil.com - php com um jeitinho brasileiro -- Precisando de consultoria em desenvolvimento para a Internet ? Impleo.net - http://impleo.net/?lang=br -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]