note 110578 added to function.implode

From: Date: Fri, 09 Nov 2012 09:11:34 +0000
Subject: note 110578 added to function.implode
Groups: php.notes 
Request: Send a blank email to php-notes+get-191818@lists.php.net to get a copy of this message
an example implode for adding value from the same array index : function SUM_Arrays($ARRAYS=array()){ $sDB = ""; foreach($ARRAYS as $key=>$VALUE_Arrays){ $hold = implode(",",$VALUE_Arrays); $sDB .= $hold." "; } $arrsRESULTS = array(); $slice_sDB = explode(" ",$sDB); $n=(count($slice_sDB)-1); for($xLOOP=0;$xLOOP<$n;$xLOOP++){ $arrsPUSH = explode(",",$slice_sDB[$xLOOP]); $arrsRESULTS[$arrsPUSH[0]] += $arrsPUSH[1]; } return $arrsRESULTS; } ---- Server IP: 69.147.83.199 Probable Submitter: 110.139.62.202 ---- Manual Page -- http://www.php.net/manual/en/function.implode.php Edit -- https://master.php.net/note/edit/110578 Del: integrated -- https://master.php.net/note/delete/110578/integrated Del: useless -- https://master.php.net/note/delete/110578/useless Del: bad code -- https://master.php.net/note/delete/110578/bad+code Del: spam -- https://master.php.net/note/delete/110578/spam Del: non-english -- https://master.php.net/note/delete/110578/non-english Del: in docs -- https://master.php.net/note/delete/110578/in+docs Del: other reasons-- https://master.php.net/note/delete/110578 Reject -- https://master.php.net/note/reject/110578 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191818) next »