RE: [PHP] Problem using return from a class.
| From: | lists) | Date: | Tue, 08 Feb 2005 17:33:33 +0000 |
| Subject: | RE: [PHP] Problem using return from a class. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208268@lists.php.net to get a copy of this message | ||
On Tue, 2005-02-08 at 16:47 +0000, 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?
> [/snip]
> What is it you are doing - are you echoing the call i.e.
> echo $myclass->function();
> Or something else?
>
> 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 could post the method here but its a bit long.
Ben
--
Ben Edwards - Poole, UK, England
If you have a problem sending me email use this link
http://www.gurtlush.org.uk/profiles.php?uid=4
(email address this email is sent from may be defunct)
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc