11 lines
137 B
PHP
11 lines
137 B
PHP
|
<?php
|
||
|
|
||
|
// ARRAY --> LAST_ELEMENT_OF_ARRAY
|
||
|
// Get the last element in an array.
|
||
|
function last($array)
|
||
|
{
|
||
|
$array[count($array) - 1];
|
||
|
}
|
||
|
|
||
|
?>
|