I have a variable $params
which gets data from the database:
$params = mssql_fetch_array($result)
As far as I know, it is associative array. I want another array $tempParams
to hold the value of this array. Can I assign it by using the following statement:
$tempParams = $params
In addition, do I need one single statement to declare and assign a value to $tempParams, or can these be separated?
One more question I would like to ask is that following statement is correct; While $tempParams contains values;
$params['column1'] = $tempParams['newColumns']