|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-11 01:38 UTC] moriyoshi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 17:00:02 2026 UTC |
<?php var_dump( array_map( NULL, array(1,2,3), array(4,5,6), array(7,8,9) ) ); ?> result: array(3) { [0]=> array(3) { [0]=> &UNKNOWN:0 [1]=> &UNKNOWN:0 [2]=> &UNKNOWN:0 } [1]=> array(3) { [0]=> &UNKNOWN:0 [1]=> &UNKNOWN:0 [2]=> &UNKNOWN:0 } [2]=> array(3) { [0]=> &UNKNOWN:0 [1]=> &UNKNOWN:0 [2]=> &UNKNOWN:0 } } while it should be array(3) { [0]=> array(3) { [0]=> int(1) [1]=> int(4) [2]=> int(7) } [1]=> array(3) { [0]=> int(2) [1]=> int(5) [2]=> int(8) } [2]=> array(3) { [0]=> int(3) [1]=> int(6) [2]=> int(9) } }