ID:               30929
 Updated by:       [EMAIL PROTECTED]
 Reported By:      cryo28 at rbcmail dot ru
-Status:           Open
+Status:           Bogus
 Bug Type:         Arrays related
 Operating System: Windows 2000
 PHP Version:      5.0.1
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

http://www.php.net/array_reverse
says:
array_reverse() takes input array and returns a new array with the
order of the elements reversed, preserving the keys if preserve_keys is
TRUE.




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

[2004-11-29 12:01:23] cryo28 at rbcmail dot ru

Description:
------------
array_reverse() doesn't work at any way

Reproduce code:
---------------
$a = array(1,2,3);
var_dump($a);

array_reverse($a);
var_dump($a);


Expected result:
----------------
array(3) {
  [0]=>
  int(1)
  [1]=>
  int(2)
  [2]=>
  int(3)
}
array(3) {
  [0]=>
  int(3)
  [1]=>
  int(2)
  [2]=>
  int(1)
}

Actual result:
--------------
array(3) {
  [0]=>
  int(1)
  [1]=>
  int(2)
  [2]=>
  int(3)
}
array(3) {
  [0]=>
  int(1)
  [1]=>
  int(2)
  [2]=>
  int(3)
}



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


-- 
Edit this bug report at http://bugs.php.net/?id=30929&edit=1

Reply via email to