And how does it translate to in C#?
$item 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]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.