Home  >  Article  >  Backend Development  >  $_SESSION[$page]该怎么写

$_SESSION[$page]该怎么写

WBOY
WBOYOriginal
2016-06-13 12:21:561250browse

$_SESSION[$page]该如何写
session_start();
$page="pageid".$_GET["page"];
$_SESSION[$page]="dddd";


$_SESSION[$page]该如何写
------解决思路----------------------
你这样写就是对的了。

<br />session_start();<br />$page="pageid".$_GET["page"];<br />$_SESSION[$page]="dddd";<br />echo $_SESSION[$page];<br />

------解决思路----------------------
你的写法就是正确的!
你说无法输出,那你的输出代码是如何写的,贴出来看看。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn