can i do this?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bhonan
Forum Newbie
Posts: 14
Joined: Sat Feb 02, 2008 12:55 pm

can i do this?

Post by bhonan »

$var = something;
$var .= somethingmore;

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

$var .= evenmore;

(lots of code using $var = somethingsomethingmoreevenmore)


??
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: can i do this?

Post by Kieran Huggins »

did it fail when you tried it?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: can i do this?

Post by Christopher »

Be careful, your "(lots and lots ....)" comments use assignment "=", but your lines of code use the concatenation operator ".=".
(#10850)
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: can i do this?

Post 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.
Post Reply