Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: parsing print_r() output with preg_match_all() Date: Mon, 11 Jan 2016 09:07:02 +0100 Lines: 18 Message-ID: <569362A6.2030707@arnowelzel.de> References: <568d3dcf$0$23748$e4fe514c@news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Trace: individual.net tNRUWq+hyMkGO0IqJyL7sAmzChiAm85GMxinBVD2+v1odtwcFA Cancel-Lock: sha1:1qcy5iwffHL3aA8XV2M5LdgdXWc= In-Reply-To: <568d3dcf$0$23748$e4fe514c@news.xs4all.nl> Xref: csiph.com comp.lang.php:16170 R.Wieser schrieb am 2016-01-06 um 17:18: > I'm saving the contents of an array-of-arrays into a string with print_r(). > Now I want to parse the contents of that string into an array-of-arrays > again. It's way easier to use serialize() and unserialize() for this purpose: -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de http://fahrradzukunft.de