Afficher un message
Vieux 13/07/2007, 11h24   #3
Arjen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: array to session array

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 ?
>
> 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
  Réponse avec citation
 
Page generated in 0,06448 seconds with 9 queries