Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Return the original array, the reversed array and the preserved array:
SUBMITTED BY:
henry1874w
DATE:
June 25, 2017, 2:47 p.m.
FORMAT:
Text only
SIZE:
179 Bytes
Raw
Download
Tweet
HITS:
282
Go to comments
Report
<?php
$a=array("Volvo","XC90",array("BMW","Toyota"));
$reverse=array_reverse($a);
$preserve=array_reverse($a,true);
print_r($a);
print_r($reverse);
print_r($preserve);
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus