|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-06 00:04 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 10:00:01 2025 UTC |
Description: ------------ Seems to increment number values. Reproduce code: --------------- <pre> <?php $a = array('a' => array('2' => '6')); $b = array('a' => array('2' => '6')); $result = array_merge_recursive( $a, $b ); print_r( $result ); ?> Expected result: ---------------- Array ( [a] => Array ( [2] => 6 ) ) Actual result: -------------- Array ( [a] => Array ( [2] => 6 [3] => 6 ) )