fork(1) download
  1. <?php
  2.  
  3. $minhaarray = array( '8' => -2, '7' => -1 );
  4.  
  5. $saida = implode(
  6. ':',
  7. function( $valor, $chave ) { return $chave.'#'.$valor; },
  8. $minhaarray,
  9. array_keys( $minhaarray )
  10. )
  11. );
  12.  
  13. echo $saida;
  14.  
  15. ?>
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
8#-2:7#-1