Bruno Desthuilliers wrote:
Bart Nessux wrote:
In Python, I can do something like this:
a,b,c = 1,2,3
How might I do this with PHP?
Have a look at list()
http://www.php.net/manual/en/function.list.php
list($a, $b, $c) = Array(1, 2, 3);
should do it. But it's not as readable as Python... !-)
Bruno
Thanks for the tip... guess I'll stick to doing on var at a time. One
last question: How can I split long lines of PHP code up into smaller
lines? For example, how can I turn this line:
$12 = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;
into this line:
$12 = xxxxxxxxxxxxxx
xxxxxxxxxxxxxx
xxxxxxxxxxxxxx;
Thanks,
Bart