开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜