Brain Twister

/ Algebra / PHP

  • (2 Pages)
  • +
  • 1
  • 2

17 Replies - 1351 Views - Last Post: 01 July 2002 - 07:50 AM

#16 Paradox   User is offline

  • D.I.C Regular

Reputation: 0
  • View blog
  • Posts: 432
  • Joined: 03-March 01

Re: Brain Twister

Posted 01 July 2002 - 06:35 AM

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. :)

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.
Was This Post Helpful? 0
  • +
  • -

#17 UTCalcs   User is offline

  • D.I.C Addict

Reputation: 0
  • View blog
  • Posts: 661
  • Joined: 02-June 02

Re: Brain Twister

Posted 01 July 2002 - 06:46 AM

what did that have to do with Algebra?
Was This Post Helpful? 0
  • +
  • -

#18 Thorian   User is offline

  • Pirate Medic
  • member icon

Reputation: 22
  • View blog
  • Posts: 5,904
  • Joined: 06-June 02

Re: Brain Twister

Posted 01 July 2002 - 07:50 AM

I dont think any one knows :bs: :wank: :D
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2