RE: [PHP-WIN] using result of function in same line

2003-11-06 Thread Stoner, David M.
03 7:27 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] using result of function in same line ok here's the problem - in some languages (like javascript or c# for instance) you could use the results of a function in same line as your call. say you have a function foo that returns an array, you

RE: [PHP-WIN] using result of function in same line

2003-11-06 Thread Svensson, B.A.T. (HKG)
It is called "bad programming habbits". -Original Message- From: Igor Belagorudsky To: [EMAIL PROTECTED] Sent: 11/6/2003 2:26 AM Subject: [PHP-WIN] using result of function in same line [...] > and also, what is that called when you can do it in same line? -- PHP Wi

[PHP-WIN] using result of function in same line

2003-11-05 Thread Igor Belagorudsky
ok here's the problem - in some languages (like javascript or c# for instance) you could use the results of a function in same line as your call. say you have a function foo that returns an array, you can do something like print foo()[4]; this will print the 5th element of whatever array foo retu