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

$_SESSION[$page]该怎么写

WBOY
Release: 2016-06-13 12:21:56
Original
1281 people have browsed it

$_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 />
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template