Simple variable question
Posted 06 April 2006 - 01:54 PM
Maybe by doing this,
$myVar, $myOther = 1;
Posted 06 April 2006 - 01:59 PM
a,b = 1,2Cool huh? But yeah... not php.
Posted 06 April 2006 - 02:07 PM
Not in php.
actually, you can assign multiple variables the same value! it looks a little funny in practice, though:
// 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";
have fun with that!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users