Voting

: min(seven, five)?
(Example: nine)

The Note You're Voting On

Ben
17 years ago
baughmankr at appstate dot edu, I think this is more efficient.

<?php
function array_shorten($arr)
{
list(
$k) = array_keys($arr);
unset(
$arr[$k]);
return
$arr;
}
?>

<< Back to user notes page

To Top