开发者

How to set object /variable to request scope using PHP

开发者 https://www.devze.com 2023-01-18 01:20 出处:网络
I am java, j2ee developer. But new to PHP lang. In Java Controller and Jsp , there is provision to add object in request attribute.

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

精彩评论

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

关注公众号