note 96114 added to function.implode
| From: | lqez at osu1 dot php dot net | Date: | Tue, 09 Feb 2010 12:59:34 +0000 |
| Subject: | note 96114 added to function.implode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165795@lists.php.net to get a copy of this message | ||
I made another implode-like-function with quotation marks.
function implode_str( $separator, $arr, $pad = "'", $tail_pad = NULL )
{
if( $tail_pad == NULL ) $tail_pad = $pad;
$res = '';
$c = count($arr);
foreach( $arr as &$node )
$res .= $pad.$node.$tail_pad.((--$c>0)?$separator:NULL);
return $res;
}
----
Server IP: 211.234.110.150
Probable Submitter: 116.120.110.131
----
Manual Page -- http://www.php.net/manual/en/function.implode.php
Edit -- https://master.php.net/note/edit/96114
Del: integrated -- https://master.php.net/note/delete/96114/integrated
Del: useless -- https://master.php.net/note/delete/96114/useless
Del: bad code -- https://master.php.net/note/delete/96114/bad+code
Del: spam -- https://master.php.net/note/delete/96114/spam
Del: non-english -- https://master.php.net/note/delete/96114/non-english
Del: in docs -- https://master.php.net/note/delete/96114/in+docs
Del: other reasons-- https://master.php.net/note/delete/96114
Reject -- https://master.php.net/note/reject/96114
Search -- https://master.php.net/manage/user-notes.php