Jump to content

PHP starting question


Recommended Posts



I'm knew to Php so this'll probably be an easy question. :lol: I have the following line of code at the top of my php file (before the <HTML> tag)


$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 :huh:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...