Re: [PHP] Function-returning array { OR } declare array at top of functions file?

2006-03-21 Thread Michael Hulse
On Mar 21, 2006, at 3:48 PM, Michael Hulse wrote: ... any good links for learning more about classes? This seems like a good tutorial to start with: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] Function-returning array { OR } declare array at top of functions file?

2006-03-21 Thread Michael Hulse
On Mar 21, 2006, at 2:35 PM, Michael Hulse wrote: Any suggestions? I am a self-taught php dude, so please don't laugh if this is a silly question. You know, the more I think about, the more I think I need to learn about PHP classes... Seems like I would just be able to define the array from

[PHP] Function-returning array { OR } declare array at top of functions file?

2006-03-21 Thread Michael Hulse
Hi, I just wanted to know if it is wrong, or non-standard, for me to set-up functions that just return an array... example: function vert_links_array(): function vert_links_array() { return array( '1' => array(S_MANCOM,'start.php?page=products& sub=mancom',S_MANCOM_TI,'m

Re: [PHP] function returning array

2003-09-07 Thread Larry E . Ullman
Nothing. But it I run: function getData() { etc.. print_r ($theArray); return $theArray; } the data is definitely there. I think the example in the PHP manual goes something like... function getData () { // blah, blah return array ('value1', 'value2', ...); } Then you would call it w

Re[2]: [PHP] function returning array

2003-09-07 Thread Tom Rogers
Hi, Monday, September 8, 2003, 12:16:47 PM, you wrote: L> Nothing. But it I run: L> function getData() { L> etc.. L> print_r ($theArray); L> return $theArray; L> } L> the data is definitely there. L> I should add that the function is within a class so it is like this: L> class exce

Re: [PHP] function returning array

2003-09-07 Thread Leonie
Nothing. But it I run: function getData() { etc.. print_r ($theArray); return $theArray; } the data is definitely there. I should add that the function is within a class so it is like this: class excel_com { (all tested - it works well) function getData() { etc..

Re: [PHP] function returning array

2003-09-07 Thread Tom Rogers
Hi, Monday, September 8, 2003, 11:54:10 AM, you wrote: L> How do I get a function to return an array? This code doesn't work: L> function getData() { L> L> return $theArray; L> } L> Any help on the syntax would be appreciated. L> Cheers L> Leonie That should work what do you get

[PHP] function returning array

2003-09-07 Thread Leonie
How do I get a function to return an array? This code doesn't work: function getData() { return $theArray; } Any help on the syntax would be appreciated. Cheers Leonie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php