182x Posted June 9, 2007 Share Posted June 9, 2007 Hey guys, I am about to start a project using PHP and after doing some research I have discovered that the same variable types can be implemented in different ways for example by using two different formats such as $HTTP_SESSION_VARS and $_SESSION. So I was just wondering which format of declaring the variables is correct? And is there any major differences between the two methods? Thanks for any help. Quote Link to comment Share on other sites More sharing options...
fert Posted June 9, 2007 Share Posted June 9, 2007 $HTTP_*_VARS are not used anymore and will be removed in PHP 6 Quote Link to comment Share on other sites More sharing options...
182x Posted June 9, 2007 Author Share Posted June 9, 2007 Thanks for the reply am I correct in saying that both are used to achieve the same result? Quote Link to comment Share on other sites More sharing options...
inVINCEable Posted June 9, 2007 Share Posted June 9, 2007 Thanks for the reply am I correct in saying that both are used to achieve the same result? Yes, but it would be bad programming practice to use what fert suggested will be obsolete in the next version of PHP. 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.