ID: 15244
Updated by: jan
Reported By: [EMAIL PROTECTED]
Old Status: Analyzed
Status: Closed
Bug Type: Documentation problem
Operating System: Linux
PHP Version: 4.0.5
Assigned To: jan
New Comment:

fixed in CVS. closing


Previous Comments:
------------------------------------------------------------------------

[2002-01-27 11:23:18] [EMAIL PROTECTED]

array_slice is used to extract values from an existing array without
modifying the orinial array. array_splice really extracts the array
elements and so modifies the array. however both return an array
containing the extracted elements, which _have_to_be_ equal. I call thi
a documentation problem, assigning to myself. thank you for reporting.

------------------------------------------------------------------------

[2002-01-27 11:12:31] [EMAIL PROTECTED]

it's like this one :
$array = array( [0] => firstentry,[1] => secondtentry,[2] =>
thirdentry,[...etc...]);

------------------------------------------------------------------------

[2002-01-27 09:57:17] [EMAIL PROTECTED]

can you please provide the $array you are using?


------------------------------------------------------------------------

[2002-01-27 09:53:41] [EMAIL PROTECTED]

both functions give back the same result:
array_slice($array,1,5);
is eaqual to:
array_splice($array,1,5);

but my phpDocumentation tells me that there should be a "small"
diverence

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=15244&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to