findLastIndex() 공개 메소드

public findLastIndex ( callable $condition )
$condition callable
예제 #1
0
 public function test_find_last_index_when_not_found()
 {
     $col = new Collection('int', [1, 2, 3]);
     $index = $col->findLastIndex(function ($x) {
         return $x === 4;
     });
     $this->assertEquals(-1, $index);
 }