Home  |  Linux  | Mysql  | PHP  | XML
From:Chetan Rane Date:Fri May  9 05:17:10 2008
Subject:RE: Get array as string --Help
Yet another option is use serialize(array())

Chetan Dattaram Rane
Software Engineer
 
 

-----Original Message-----
From: Shelley [mailto:myphplist@gmail.com] 
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

Navigate in group php.general at sever news.php.net
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants