//ads: ?> stay with the last 15 elements of an array [duplicate]php PHP Snippet 1:$truncatedArray = array_slice($pro, -15);