FlashAges, on Jun 28 2002, 09:17 PM, said:
"HelloWorld" is the result. Why:
[*]"a" was redefined after B was already composed.
[*]You have already complied "b" then it will NOT recompile due to a change in one of the variables.
I thought that you would like that. 
[*]"a" was redefined after B was already composed.
[*]You have already complied "b" then it will NOT recompile due to a change in one of the variables.
It's about the operators. Javascript uses + for concatenation, but PHP uses a period. Javascript would merge the strings because that's what concatenation does, but PHP would try to 'add' the strings, which it can't do, so it gives 0.
It would only really work in Javascript, because in PHP you'd need dollar signs and semicolons.

New Topic/Question




MultiQuote


|