php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55380 the output of the "red", "green" example has changed with new versions of php
Submitted: 2011-08-08 05:34 UTC Modified: 2011-08-08 05:38 UTC
From: ggggggg73 at hotmail dot com Assigned:
Status: Closed Package: Output Control
PHP Version: 5.3.6 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ggggggg73 at hotmail dot com
New email:
PHP Version: OS:

 

 [2011-08-08 05:34 UTC] ggggggg73 at hotmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.array-splice%23Examples
---


the output of the "red", "green" example has changed with new versions of php


<?php
$input = array("red", "green", "blue", "yellow");
print_r(array_splice($input, 2));
?>

==  blue and yellow.             not red and green

Test script:
---------------
<?php
$input = array("red", "green", "blue", "yellow");
print_r(array_splice($input, 2));
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-08 05:38 UTC] ggggggg73 at hotmail dot com
-Status: Open +Status: Closed
 [2011-08-08 05:38 UTC] ggggggg73 at hotmail dot com
error from myself
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Mar 22 03:04:44 2023 UTC