Aella Posted December 29, 2003 Share Posted December 29, 2003 Hi I'm knew to Php so this'll probably be an easy question. I have the following line of code at the top of my php file (before the <HTML> tag) ><?php $foo = 'bar'; ?> and then later ><? $foo ?> but when I view the page, it looks like $foo was empty and the string 'bar' doesn't appear anywhere. Is there anything I'm clearly doing wrong? I'd really like to understand php better Quote Link to comment Share on other sites More sharing options...
charle97 Posted December 29, 2003 Share Posted December 29, 2003 ><?php echo $foo ?> Quote Link to comment Share on other sites More sharing options...
Aella Posted December 29, 2003 Author Share Posted December 29, 2003 Thanks! It worked Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.