Voting

: four minus one?
(Example: nine)

The Note You're Voting On

doyley3731 at gmail dot com
17 years ago
I had a problem when using this function because my array was made up entirley of numbers, so I have made my own function. Hopefully it will be useful to somebody.

function array_trim_end($array){

$num=count($array);
$num=$num-1;
unset($array[$num]);

return $array;
}

<< Back to user notes page

To Top