Bug #15244 Updated: array_splice acts like array_splice

From: Date: Sun, 27 Jan 2002 16:48:08 +0000
Subject: Bug #15244 Updated: array_splice acts like array_splice
References: 1  Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-78255@lists.php.net to get a copy of this message
ID: 15244 Updated by: jan Reported By: tobias@pfadfinder-kirchzarten.de 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] jan@php.net 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] tobias@pfadfinder-kirchzarten.de it's like this one : $array = array( [0] => firstentry,[1] => secondtentry,[2] => thirdentry,[...etc...]); ------------------------------------------------------------------------ [2002-01-27 09:57:17] jan@php.net can you please provide the $array you are using? ------------------------------------------------------------------------ [2002-01-27 09:53:41] tobias@pfadfinder-kirchzarten.de 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

« previous php.dev (#78255) next »