RE: Problem using return from a class.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux