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
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
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