View Full Version : Wondering about variables..
04-02-2004, 04:01 PM
Just wondering, everyone who gives help here gives variables the old way. Such as: $variable instead of $_variable. I thought in all the newer (or newest) version of PHP all variables are supposed to start with the underscore?
04-02-2004, 04:08 PM
I think your referring to the global variables using POST and GET and the like.
Old way: $myVar
(can be used for post, get, and session)
New way: $_POST['myVar'] or $_GET['myVar'] or $_SESSION['myVar']
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.