[dev] [commits] Horde branch master updated. af8caeffac9e7962902aa63079ce49298eacfe7f
Michael J Rubinsky
mrubinsk at horde.org
Thu Oct 31 15:33:32 UTC 2013
Quoting Michael M Slusarz <slusarz at horde.org>:
> The branch "master" has been updated.
> The following is a summary of the commits.
>
> from: eec4302e00a592a7268370470f3f609e8d923717
>
> af8caef For some reason, unlike every other array on this planet,
> unpack() starts indexing at 1, not 0
For what it's worth, this is because unpack() is designed to return an
associative array, with the "index" appended to the key, so key1,
key2, key3 etc... I guess semantically the first key being 'key1'
makes more sense than 'key0'. Not supplying the key treats it as an
empty string (which can cause problems if you are unpacking multiple
arrays, as they will overwrite each other).
--
mike
The Horde Project (www.horde.org)
mrubinsk at horde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5849 bytes
Desc: S/MIME Signature
URL: <http://lists.horde.org/archives/dev/attachments/20131031/46fb6025/attachment.bin>
More information about the dev
mailing list