[ create a new paste ] login | about

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

PHP, pasted on Mar 21:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

$input = '32131212';
$annotation = array(
'three',
'two',
'one',
'three',
'one',
'two',
'one',
'two',
);

var_dump(array_map(null, $input, $annotation));


Output:
1
2
3

Warning: array_map(): Argument #2 should be an array on line 15
NULL


Create a new paste based on this one


Comments: