Re: vars

From: Date: Thu, 27 Jul 2000 22:22:40 +0000
Subject: Re: vars
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8678@lists.php.net to get a copy of this message
Uhm, you must be a good programmer, I name variables very arcanely just because I get bored with coherent names. I like to give myself a challenge, you know what im saying? $question, $answer, $user those are just so easy to navigate, next time try something like $evilVar, $blah, $muh This gets especially fun if you have LOTS of variables... and avoid arrays at all costs so you can get exciting numbering systems instead of arrays: <? $muh = 0; $bah = 0; $gee = 0; while($muh < 10) { while($bah < 10) { $blah = "evilVar" . $muh . $bah; $$blah = $gee; $gee++; $bah++; } $bah = 0; $muh++; } ?> Fun, no? Ed :) "Kurth Bemis" <kurth@usaexpress.net> wrote in message news:4.3.2.7.2.20000727172333.024df880@mail.usaexpress.net... > from a programming standpoint is it better to use shorter var names or > longer? longer is easier to me because i can be more descriptive....i have > read that shorter is easier on the server tho....thoughts? > > ~kurth > Kurth Bemis - Senior Linux Network/Systems Administrator, USAExpress.net > > kurth@usaexpress.net > http://www.usaexpress.net/kurth > ICQ - 6624050 > Call Sign - N1TYW > PGP key available - http://www.usaexpress.net/kurth/pgp > > Fight Weak Encryption! Donate your wasted CPU cycles to Distributed.net > (http://www.distributed.net) > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#8678) next »