note 89862 added to function.join
| From: | leshkasad at gmail dot com | Date: | Thu, 26 Mar 2009 10:48:44 +0000 |
| Subject: | note 89862 added to function.join | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-152465@lists.php.net to get a copy of this message | ||
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));
----
Server IP: 69.147.83.197
Probable Submitter: 86.57.245.84
----
Manual Page -- http://www.php.net/manual/en/function.join.php
Edit -- https://master.php.net/note/edit/89862
Del: integrated -- https://master.php.net/note/delete/89862/integrated
Del: useless -- https://master.php.net/note/delete/89862/useless
Del: bad code -- https://master.php.net/note/delete/89862/bad+code
Del: spam -- https://master.php.net/note/delete/89862/spam
Del: non-english -- https://master.php.net/note/delete/89862/non-english
Del: in docs -- https://master.php.net/note/delete/89862/in+docs
Del: other reasons-- https://master.php.net/note/delete/89862
Reject -- https://master.php.net/note/reject/89862
Search -- https://master.php.net/manage/user-notes.php