Since these methods just set values within the $_GET and $_POST superglobals, can someone tell me what the point of using these methods are as opposed to just setting the values directly? I feel like I’m missing something.
Since these methods just set values within the $_GET and $_POST superglobals, can someone
Share
The best arguments are:
Hide the supergloabals so your code will still work if future versions of PHP modify, deprecate, or remove their functionality, as was done with
$HTTP_POST_VARS, etc.In future versions of Zend Framework, additional functionality may need to be added to the
setQuery()andsetPost()functions.