ID: 12116
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Unknown/Other Function
Operating System: Win2k Server Advance/ IIS 5.0
PHP Version: 4.0.6
New Comment:

I misunderstood the functionality of array_slice and array_splice.  This behavior is 
as intended.

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

[2001-07-12 17:37:38] [EMAIL PROTECTED]

//returns pear
$f=array("orange","apple","pear","banana");
$output=array_splice($f,2,1);
foreach($output as $d){
        echo $d."<BR>";
}

//also returns pear
$f=array("orange","apple","pear","banana");
$output=array_slice($f,2,1);
foreach($output as $d){
        echo $d."<BR>";
}


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



Edit this bug report at http://bugs.php.net/?id=12116&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