Filter items by the given key value pair using strict comparison.
public whereInStrict ( string $key, mixed $values ) : static | ||
$key | string | |
$values | mixed | |
리턴 | static |
public function testWhereInStrict() { $c = new Collection([['v' => 1], ['v' => 2], ['v' => 3], ['v' => '3'], ['v' => 4]]); $this->assertEquals([['v' => 1], ['v' => 3]], $c->whereInStrict('v', [1, 3])->values()->all()); }