note 100958 added to function.strpos
| From: | info at teleit dot pl | Date: | Wed, 17 Nov 2010 11:29:59 +0000 |
| Subject: | note 100958 added to function.strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-174110@lists.php.net to get a copy of this message | ||
function implode_keys($glue,$arr,$before = null,$after = null) {
$i = 0; $str = null;
if(is_array($arr)):
$count = count($arr)
foreach($arr as $k=>$v) {
$i++;
$str. = ($i == 1 && $before !=null ? $before : null).$k.($i < $count ? $glue :
null).($i == $count && $after != null ? $after : null);
}
endif;
return $str;
}
--
http://www.teleit.pl
----
Server IP: 69.147.83.197
Probable Submitter: 89.174.118.156
----
Manual Page -- http://www.php.net/manual/en/function.strpos.php
Edit -- https://master.php.net/note/edit/100958
Del: integrated -- https://master.php.net/note/delete/100958/integrated
Del: useless -- https://master.php.net/note/delete/100958/useless
Del: bad code -- https://master.php.net/note/delete/100958/bad+code
Del: spam -- https://master.php.net/note/delete/100958/spam
Del: non-english -- https://master.php.net/note/delete/100958/non-english
Del: in docs -- https://master.php.net/note/delete/100958/in+docs
Del: other reasons-- https://master.php.net/note/delete/100958
Reject -- https://master.php.net/note/reject/100958
Search -- https://master.php.net/manage/user-notes.php