Jump to content

Simple variable question


Cep

Recommended Posts

[!--quoteo(post=362222:date=Apr 6 2006, 09:59 AM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ Apr 6 2006, 09:59 AM) [snapback]362222[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Not in php.
[/quote]

actually, you can assign multiple variables the same value! it looks a little funny in practice, though:
[code]
// here's the principle
$myVar = $myOther = 1;

// you can link as many as you'd like. check this out:
$one = $two = $three = $four = 1;
echo "$one, $two, $three, $four";
[/code]

have fun with that!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.