note 52301 added to function.implode

From: Date: Wed, 27 Apr 2005 13:06:14 +0000
Subject: note 52301 added to function.implode
Groups: php.notes 
Request: Send a blank email to php-notes+get-88620@lists.php.net to get a copy of this message
/** * Like implode but with keys * * @param string[optional] $glue * @param array $pieces * @param string[optional] $hifen * @return string */ function implode_with_key($glue = null, $pieces, $hifen = ',') { $return = null; foreach ($pieces as $tk => $tv) $return .= $glue.$tk.$hifen.$tv; return substr($return,1); } ---- Manual Page -- http://www.php.net/manual/en/function.implode.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52301 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52301&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52301&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52301&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52301&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52301&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52301&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88620) next »