note 87384 deleted from ref.array by danbrown

From: Date: Tue, 02 Dec 2008 23:41:30 +0000
Subject: note 87384 deleted from ref.array by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-147573@lists.php.net to get a copy of this message
Note Submitter: cristiano at galvao dot pro dot br ---- I made this 'Array to String' function: //<--- ARRAY TO STRING: function array_to_string( $array, $separator ) { if( is_array( $array ) ) { foreach( $array as $element ) { $string .= $element . $separator; } $string = substr( $string, 0, - strlen( $separator ) ); } return $string; } Note that to transform back into array, we just need to use standard PHP split function. Cristiano Galvão http://www.galvao.pro.br

« previous php.notes (#147573) next »