Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

array reverse php

<?php
$i_arr = ["html", "css", "javascript", "php", "vue", "react"];

echo "<pre>";
print_r($i_arr);
echo "</pre>";

$reverse = array_reverse($i_arr, false);
$preserve = array_reverse($i_arr, true);

echo "<pre>";
print_r($reverse);
echo "</pre>";

echo "<pre>";
print_r($preserve);
echo "</pre>";
?>
 
PREVIOUS NEXT
Tagged: #array #reverse #php
ADD COMMENT
Topic
Name
3+2 =