note 27971 deleted from ref.array by sniper

From: Date: Sat, 18 Oct 2003 18:02:47 +0000
Subject: note 27971 deleted from ref.array by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58834@lists.php.net to get a copy of this message
Note Submitter: mno11@lycos.NOSPAM ---- For those that would like something similar to print_r, but instead returns the values as a string, I've written the following simple function. It doesn't work for 3D arrays, yet... function arrayData($array) { $keys = array_keys($array); $values = array_values($array); $data = ""; for ($i=0; $i<count($keys); $i++) { $data .= $keys[$i]."=>'".$values[$i]."' , "; } return $data; } To email me, replace NOSPAM with com

« previous php.notes (#58834) next »