Reply to Re: reloading stored print_r() data back into an array

Your name:

Reply:


Posted by MRB on 05/15/05 16:49

Somedude wrote:
> Hi all,
>
> I am trying to reload a stored print_r() dump back into a usable array
> but seem to be missing something.
>
> // the retrieved array as stored in the database directly from print_r()
> $db_result = 'Array ( [user] => somedude [script] => genPass.php )';
>
> How on earth do I make this into a usable array again where I can call
> $arr['user'] or something similar ?!?
>
>
> Thanks a lot IA,
>
> SomeDude.


Why use print_r? Why not use serialize / unserialize instead which is
meant for these kind of things?

[Back to original 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

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