ID: 15244 Updated by: jan Reported By: [EMAIL PROTECTED] Old Status: Open Status: Analyzed Old Bug Type: Arrays related Bug Type: Documentation problem Operating System: Linux PHP Version: 4.0.5 Old Assigned To: Assigned To: jan New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [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]