php please
// 5) isArraySorted
// Given an array , return true if the element are in ascending
order.
// Note: 'abe' < 'ben' and 5 > 3
// Precondition $arr has all the same type of elements
function isArraySorted($arr) {
}
echo PHP_EOL . 'isArraySorted(array(1,
2, 2, 99) 1: ' . isArraySorted ( array
(
1,
2,
2,
99 ) ) . "\n";
assert ( isArraySorted (
array (
1,
2,
2,
99 ) ) );
echo 'isArraySorted(array(2,...