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
 [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

Pull Requests

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: Sat Dec 21 13:01:31 2024 UTC