note 32550 added to function.implode
| From: | james at rack1 dot php dot net | Date: | Sat, 31 May 2003 00:13:10 +0000 |
| Subject: | note 32550 added to function.implode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49460@lists.php.net to get a copy of this message | ||
As a followup to the implode_with_keys function posted by 'static', here's a
corresponding explode_with_keys function I wrote:
function explode_with_keys($seperator, $string)
{
$output=array();
$array=explode($seperator, $string);
foreach ($array as $value) {
$row=explode("=",$value);
$output[$row[0]]=$row[1];
}
return $output;
}
----
Manual Page -- http://www.php.net/manual/en/function.implode.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32550
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32550&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32550&report=yes