Voting

: max(eight, seven)?
(Example: nine)

The Note You're Voting On

Anonymous
10 years ago
<?php
function array_slice2( $array, $offset, $length = 0 )
{
if(
$offset < 0 )
$offset = sizeof( $array ) + $offset;

$length = ( !$length ? sizeof( $array ) : ( $length < 0 ? sizeof( $array ) - $length : $length + $offset ) );

for(
$i = $offset; $i < $length; $i++ )
$tmp[] = $array[$i];

return
$tmp;
}
?>

<< Back to user notes page

To Top