Baffled - Problem with Echo [Solved]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phpCCore Brad
Forum Commoner
Posts: 47
Joined: Sun Dec 04, 2005 5:46 pm
Location: Michigan, USA
Contact:

Baffled - Problem with Echo [Solved]

Post by phpCCore Brad »

Okay I was getting a blank page. So, I var_dumped my variable just to see what was going on. The variable has the right information in it, but when I try to echo the information I get a blank page. This page was working perfectly and now it stopped working.

Code: Select all

var_dump($main);
echo $main->finalText;
echo "test";

That is the code I have. THe webpage is: http://www.disc-covers.com/?cmd=MembersList

As you will notice the vardump dumps the class and the variable finalText is there and should echo, but when I try to echo it I get nothing. IF you will also notice I can echo after it fine just can't echo anything in the class... I have echoed every variable in the class and have got nothing. Any help would be appreciated..
Last edited by phpCCore Brad on Tue Jun 20, 2006 4:56 pm, edited 1 time in total.
phpCCore Brad
Forum Commoner
Posts: 47
Joined: Sun Dec 04, 2005 5:46 pm
Location: Michigan, USA
Contact:

Post by phpCCore Brad »

Another note...

if I var_dump($main->finalText); I get NULL
phpCCore Brad
Forum Commoner
Posts: 47
Joined: Sun Dec 04, 2005 5:46 pm
Location: Michigan, USA
Contact:

Post by phpCCore Brad »

Nevermind... I figured it out. I was using byRef commands in my functions and it passed the variable back as an array. Sorry about the mistake
Post Reply