By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,729 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,729 IT Pros & Developers. It's quick & easy.

Is there a way to assign multiple variables a single value on a single line?

P: n/a
i tried

$f1, $f2, $f3 = '1';
and
list($f1, $f2, $f3) = 1;

neither work... second obviously cuz its looking for an array on the right
side, correct?

Right now i have ot build a for loop to assign the values
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Brandon Lamb wrote:
i tried

$f1, $f2, $f3 = '1';
and
list($f1, $f2, $f3) = 1;

neither work... second obviously cuz its looking for an array on the
right side, correct?


$f1 = $f2 = $f3 = '1';

JW

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.