RE: [PHP] Get array as string --Help

[email protected] (Zoltán Németh)
Newsgroups php.general
Message-ID <[email protected]>
> Yet another option is use serialize(array())

or you could use var_export if you need php code
http://php.net/var_export

greets,
ZoltĂĄn NĂŠmeth

>
> Chetan Dattaram Rane
> Software Engineer
>
>
>
> -----Original Message-----
> From: Shelley [mailto:[email protected]]
> Sent: Friday, May 09, 2008 3:11 PM
> To: PHP General list
> Subject: [PHP] Get array as string --Help
>
> Hi all,
>
> If I have an array like this:
> $arr = array (
>                 'c' => 'd',
>                 'e' => 'f');
>
> How can I convert this array into a string? I want to write an array into
> a
> file.
>
> Thanks in advance.
>
> --
> Regards,
> Shelley
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.