note 89862 deleted from function.join by danbrown

From: Date: Thu, 26 Mar 2009 13:15:40 +0000
Subject: note 89862 deleted from function.join by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-152469@lists.php.net to get a copy of this message
Note Submitter: leshkasad at gmail dot com ---- RE: datacompboy at call2ru dot com You can do same with native PHP functions: $intervals = array(array(5, 9), array(11, 15), array(22, 24)); function dashJoin ($ar) { return join("-", $ar);}; echo join (",", array_map("dashJoin", $intervals));

« previous php.notes (#152469) next »