<?php $arr = array('1', '2', '3', '4');$bancoDeDados = array('mercedes', 'audi', 'fiat', 'alfa');$resultado = array_map(null, $arr, $bancoDeDados); print_r($resultado);
Standard input is empty
Array ( [0] => Array ( [0] => 1 [1] => mercedes ) [1] => Array ( [0] => 2 [1] => audi ) [2] => Array ( [0] => 3 [1] => fiat ) [3] => Array ( [0] => 4 [1] => alfa ) )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!