|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-08-14 06:26 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 11:00:01 2025 UTC |
Using 0 padded integers as index for an array: - does not work for 0 and 8 - scrambles the order of the elements ------- $a[00] = "string0"; $a[01] = "string1"; $a[02] = "string2"; $a[03] = "string3"; $a[04] = "string4"; $a[05] = "string5"; $a[06] = "string6"; $a[07] = "string7"; $a[08] = "string8"; $a[09] = "string9"; echo implode(";", $a); -------- This yields: string9;string1;string2;string3;string4;string5;string6;string7