|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-05-19 13:06 UTC] jeroen@php.net
[2001-05-21 14:08 UTC] cynic@php.net
[2002-02-26 21:39 UTC] yohgaki@php.net
[2002-02-26 21:39 UTC] yohgaki@php.net
[2002-03-31 00:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 11:00:02 2025 UTC |
Not sure if this is a bug or not, but I can't find any reference to it in the documentation/user comments/FAQs Basically, if you build an associative(ish) array like this: $period = -24; for ($i=$period; $i<=0; $i++) { $data[$i] = $myvalues[$anotherindex]; }; It works ok, the array contains (in order) elements with the inidices -24 to 0. But, if $period is decreased so that over 25 elements are introduced, the order goes off... basically elements with indices -24 to 0 are fine, but all the other ones come, in order, _after_ index 0. Any ideas? Shane