RE: [PHP] Assigning one var to multiple vars

From: Date: Thu, 09 Sep 2004 21:53:54 +0000
Subject: RE: [PHP] Assigning one var to multiple vars
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-196267@lists.php.net to get a copy of this message
> How about: > > <? > $var1 = $var2 = $var3 = 5; > echo $var1 . '<br/>' . $var2 . '<br/>' . $var3 . > '<br/>'; > ?> > > Regards, > > Justin > I had something stuck in my head between what Python does and PHP's list function. Not sure why I couldn't figure this one out. Thanks all. -- --Matthew Sims --<http://killermookie.org>

« previous php.general (#196267) next »