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.
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]