开发者

What does this mean exactly? $_SESSION['sessionName '][$item['rowName ']]

开发者 https://www.devze.com 2022-12-11 05:00 出处:网络
And how does it translate to in C#? $ite开发者_Go百科m holds the results from mysql_fetch_array()

And how does it translate to in C#?

$ite开发者_Go百科m holds the results from mysql_fetch_array()

I'm not really familiar with PHP so this is all new to me. Thanks.


$_SESSION is a superglobal that stores session data in an associative array, see http://php.net/session.

In your example, the value at $_SESSION['sessionName'] is apparently an array itself, which is indexed into with the value of $item['rowName'] which smells like a string.

To simplify the expression, you could define these variables:

$sessionName = $_SESSION['sessionName'];
$rowName = $item['rowName'];

And then we could say that your example code is equivalent to

$sessionName[$rowName]
0

精彩评论

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