How to set object /variable to request scope using PHP
I am java, j2ee developer. But new to PHP lang.
In Java Controller and Jsp , there is provision to add object in request attribute. like this ....
request.setAttribute("Object_key", Object);
Is there is such kind of provision in PHP, which add object/Variab开发者_Go百科le in request. So these objects/Variables are available to next view page.
$_REQUEST["username"] = "Tom";
Reference : http://php.net/manual/en/reserved.variables.request.php
精彩评论