You are here: Re: array to session array « PHP Language « IT news, forums, messages
Re: array to session array

Posted by Rik on 07/16/07 18:48

On Fri, 13 Jul 2007 12:24:24 +0200, Arjen <dont@mail.me> wrote:

> 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 =3D> $value)
>> $_SESSION['XML'][$key] =3D $value;
>>
>
> Yup or serialize it first

Totally unnecessary. In the default session handler the data is already =
=

serialised on a save, why do it twice?

-- =

Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация