Re: Re: PHP & XML

From: Date: Sat, 08 Dec 2001 00:58:15 +0000
Subject: Re: Re: PHP & XML
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-72909@lists.php.net to get a copy of this message
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 <jpm@phpbrasil.com> http://phpbrasil.com - php com um jeitinho brasileiro -- Precisando de consultoria em desenvolvimento para a Internet ? Impleo.net - http://impleo.net/?lang=br

« previous php.dev (#72909) next »