Page 1 of 1

can i do this?

Posted: Tue Feb 05, 2008 9:51 pm
by bhonan
$var = something;
$var .= somethingmore;

(lots and lots of code using $var = somethingsomethingmore)

$var .= evenmore;

(lots of code using $var = somethingsomethingmoreevenmore)


??

Re: can i do this?

Posted: Tue Feb 05, 2008 9:59 pm
by Kieran Huggins
did it fail when you tried it?

Re: can i do this?

Posted: Tue Feb 05, 2008 10:21 pm
by Christopher
Be careful, your "(lots and lots ....)" comments use assignment "=", but your lines of code use the concatenation operator ".=".

Re: can i do this?

Posted: Wed Feb 06, 2008 2:16 pm
by califdon
You will get a lot more help from this forum if you will:
  • Use a Subject that indicates what your problem is concerned with; and
  • Tell us what you have done so far. Most of us are more eager to help someone who has made some effort to solve their own problem, not just an idle curiosity question.