[ create a new paste ] login | about

Link: http://codepad.org/92Q73Tpe    [ raw code | output | fork ]

PHP, pasted on Oct 8:
1
2
3
4
5
6
7
<?php
$foo = Array(1, 2, 3, 4);
$bar = Array('a', 'b', 'c', 'd');

$foobar = array_combine($foo, $bar);

print $foobar[1];


Output:
1
a


Create a new paste based on this one


Comments: