Re: [PHP] Problem using return from a class.

2005-02-09 Thread Jason Wong
On Wednesday 09 February 2005 01:33, Ben Edwards (lists) wrote: Maybe you should post a bit of code to illustrate your problem ;) I'me just doing:- return $radio_html; as the last line of the method. If I do echo $radio_html; The condense of the variable gets outputted. I

Re: [PHP] Problem using return from a class.

2005-02-09 Thread Ben Edwards
On Wed, 9 Feb 2005 16:12:58 +0800, Jason Wong [EMAIL PROTECTED] wrote: On Wednesday 09 February 2005 01:33, Ben Edwards (lists) wrote: Maybe you should post a bit of code to illustrate your problem ;) I'me just doing:- return $radio_html; as the last line of the method. If I

RE: [PHP] Problem using return from a class.

2005-02-08 Thread Chris Ramsay
[snip] I am having a really odd problem. I have a class and if I do a return nothing is returned. If I do an echo of the variable that is being returned I can see it so there is something to return. Is there some strange bug in PHP? [/snip] What is it you are doing - are you echoing the call

RE: [PHP] Problem using return from a class.

2005-02-08 Thread Ben Edwards (lists)
On Tue, 2005-02-08 at 16:47 +, Chris Ramsay wrote: [snip] I am having a really odd problem. I have a class and if I do a return nothing is returned. If I do an echo of the variable that is being returned I can see it so there is something to return. Is there some strange bug in PHP?