Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Jim Lucas
Bojan Tesanovic wrote: On Apr 12, 2008, at 12:33 AM, Daniel Kolbo wrote: Hello, I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the array(5,6). Here is what I've tried, function returnarray() {

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Stut
On 12 Apr 2008, at 00:31, Daniel Kolbo wrote: Philip Thompson wrote: On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote: I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the array(5,6). Here is what

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Daniel Kolbo
Jim Lucas wrote: Bojan Tesanovic wrote: On Apr 12, 2008, at 12:33 AM, Daniel Kolbo wrote: Hello, I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the array(5,6). Here is what I've tried,

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Daniel Kolbo
Stut wrote: On 12 Apr 2008, at 00:31, Daniel Kolbo wrote: Philip Thompson wrote: On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote: I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the array(5,6).

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Stut
On 12 Apr 2008, at 15:18, Daniel Kolbo wrote: Stut wrote: On 12 Apr 2008, at 00:31, Daniel Kolbo wrote: Philip Thompson wrote: On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote: I want to return an array from function and reference an index all in one line. Is this possible? In the code

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Nathan Nobbe
On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo [EMAIL PROTECTED] wrote: search the archives ;) http://www.mail-archive.com/php-general@lists.php.net/msg224626.html -nathan

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Casey
On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo [EMAIL PROTECTED] wrote: search the archives ;) http://www.mail-archive.com/php-general@lists.php.net/msg224626.html -nathan ?php function ReturnArray() { return

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Nathan Nobbe
On Sat, Apr 12, 2008 at 12:18 PM, Casey [EMAIL PROTECTED] wrote: On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo [EMAIL PROTECTED] wrote: search the archives ;)

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Casey
On Sat, Apr 12, 2008 at 9:35 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Sat, Apr 12, 2008 at 12:18 PM, Casey [EMAIL PROTECTED] wrote: On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo [EMAIL PROTECTED] wrote:

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Daniel Kolbo
Casey wrote: On Sat, Apr 12, 2008 at 9:35 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Sat, Apr 12, 2008 at 12:18 PM, Casey [EMAIL PROTECTED] wrote: On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo [EMAIL PROTECTED]

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Bojan Tesanovic
On Apr 12, 2008, at 6:18 PM, Casey wrote: On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo [EMAIL PROTECTED] wrote: search the archives ;) http://www.mail-archive.com/php-general@lists.php.net/msg224626.html -nathan

Re: [PHP] Return an Array and immediately reference an index

2008-04-11 Thread Philip Thompson
Top-posting side comment: It's not nice to hijack threads. My comments are below... On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote: Hello, I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the

Re: [PHP] Return an Array and immediately reference an index

2008-04-11 Thread Daniel Kolbo
Philip Thompson wrote: Top-posting side comment: It's not nice to hijack threads. My comments are below... On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote: Hello, I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want

Re: [PHP] Return an Array and immediately reference an index

2008-04-11 Thread Philip Thompson
On Apr 11, 2008, at 6:31 PM, Daniel Kolbo wrote: Philip Thompson wrote: Top-posting side comment: It's not nice to hijack threads. My comments are below... On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote: Hello, I want to return an array from function and reference an index all in one

Re: [PHP] Return an Array and immediately reference an index

2008-04-11 Thread Bojan Tesanovic
On Apr 12, 2008, at 12:33 AM, Daniel Kolbo wrote: Hello, I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the array(5,6). Here is what I've tried, function returnarray() { return