3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = Array ( 257 => Array( "recaudacion" => "2017-10-07", "Contribuyentes Locales,Activid. Especiales y Salas de Recreacion" => "2017-10-16" ), 258=> array( "Impuestos de Sellos"=>"2017-10-10", "Declaracion Jurada anual 2016 Contribuyentes de convenio multilateral"=>"2017-10-00", "Recategorizacion cuatrimestral regimen simplificado"=>"2017-10-00" ) ); $newarray = Array(); foreach($arr as $firstkey => $arr2) { //$arr here is the variable that contains your array $newstring = ""; $first = true; foreach($arr2 as $key => $val) { $newstring .= ($first ? "" : "\r\n\r\n") . $key . " Vence: " . $val; $first = false; } $newarray[$firstkey] = $newstring; } var_dump($newarray);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [257]=> string(115) "recaudacion Vence: 2017-10-07 Contribuyentes Locales,Activid. Especiales y Salas de Recreacion Vence: 2017-10-16" [258]=> string(201) "Impuestos de Sellos Vence: 2017-10-10 Declaracion Jurada anual 2016 Contribuyentes de convenio multilateral Vence: 2017-10-00 Recategorizacion cuatrimestral regimen simplificado Vence: 2017-10-00" }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
168.23 ms | 406 KiB | 5 Q