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. Link to comment https://forums.phpfreaks.com/topic/54832-variable-question/ 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 Link to comment https://forums.phpfreaks.com/topic/54832-variable-question/#findComment-271209 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? Link to comment https://forums.phpfreaks.com/topic/54832-variable-question/#findComment-271212 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. Link to comment https://forums.phpfreaks.com/topic/54832-variable-question/#findComment-271256 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.