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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 12:01:27 2024 UTC