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

From: Date: Fri, 09 May 2008 11:15:04 +0000
Subject: RE: [PHP] Get array as string --Help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-274058@lists.php.net to get a copy of this message
What is the format you want it to be You can use JSON_encode(array()); To get into a text like representation 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

« previous php.general (#274058) next »