Answers for "for reverse php"

PHP
1

array reverse php

array_reverse($array);
Posted by: Guest on October-28-2020
1

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>";
?>
Posted by: Guest on September-11-2021

Browse Popular Code Answers by Language