|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2016-09-30 01:15 UTC] nick at nickduffell dot com dot au
Description: ------------ --- From manual page: http://www.php.net/function.array-splice --- Default value for $length is shown as 0, but it should be null. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 15:00:01 2025 UTC |
The document also states the following: If length is specified and is zero, no elements will be removed If zero was the default value the function would do nothing unless you passed a value into that parameter. When I look in my IDE however it has the following, which I believe is correct: function array_splice (array &$input, $offset, $length = null, $replacement = null) {}