Posted by Arjen on 07/13/07 10:24
Sebastiaan 'CrashandDie' Lauwers wrote:
> Peter wrote:
>> Hi,
>
> Hi,
>
>> $my_array[$row]["name_associative"]
>> How would I convert my array to a session array?
>
> this any help ?
>
> foreach ($my_array as $key => $value)
> $_SESSION['XML'][$key] = $value;
>
Yup or serialize it first
$_SESSION['XML']=serialize($array);
(unserizlize on the next page)
Arjen
[Back to original message]
|