note 100820 added to function.implode

From: Date: Tue, 09 Nov 2010 09:38:22 +0000
Subject: note 100820 added to function.implode
Groups: php.notes 
Request: Send a blank email to php-notes+get-173875@lists.php.net to get a copy of this message
Small function when you just want to implode on the keys of an array. Especially helpful when you for instance create an array for database inserting in which the keys point to table row names. Uses same function argument names as this documentation states for implode. function implode_key($glue = "", $pieces = array()) { $arrK = array_keys($pieces); return implode($glue, $arrK); } ---- Server IP: 69.147.83.197 Probable Submitter: 188.200.123.154 ---- Manual Page -- http://www.php.net/manual/en/function.implode.php Edit -- https://master.php.net/note/edit/100820 Del: integrated -- https://master.php.net/note/delete/100820/integrated Del: useless -- https://master.php.net/note/delete/100820/useless Del: bad code -- https://master.php.net/note/delete/100820/bad+code Del: spam -- https://master.php.net/note/delete/100820/spam Del: non-english -- https://master.php.net/note/delete/100820/non-english Del: in docs -- https://master.php.net/note/delete/100820/in+docs Del: other reasons-- https://master.php.net/note/delete/100820 Reject -- https://master.php.net/note/reject/100820 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#173875) next »