|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-06-24 17:42 UTC] mattwil@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ just look at the example Reproduce code: --------------- <?php $a = array('1'=>'abc','a'=>'1'); var_dump(array_keys($a)); ?> Expected result: ---------------- array(2) { [0]=> string(1) "1" [1]=> string(1) "a" } Actual result: -------------- array(2) { [0]=> int(1) [1]=> string(1) "a" }