<?php
$inputArray = [1,2,3,4];
reverseArray($inputArray);
function reverseArray($array){
$arraySize = sizeof(array);
for($i=$arraySize-1; $i>=0; $i--){
print_r($inputArray[$i] . ' ');
}
}
?>
Author: Not specified | Language: text |
Description: Not specified | Timestamp: 2017-08-31 12:12:25 +0000 |
View raw paste | Reply |
View raw paste | Reply |