last() публичный Метод

Get the last item from the collection.
public last ( ) : mixed | null
Результат mixed | null
Пример #1
0
 public function testLastReturnsLastItemInCollection()
 {
     $c = new Collection(array('foo', 'bar'));
     $this->assertEquals('bar', $c->last());
 }