Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
Fusonic
Linq
Linq
singleOrNull
Fusonic\Linq\Linq::singleOrNull PHP Method
Linq Class Documentation
Exibir arquivo
Open project: fusonic/linq
singleOrNull()
public
method
Returns the only element that satisfies a specified condition or NULL if no such element exists.
public
singleOrNull
(
callable
$func
= null ) :
mixed
$func
callable
a func that returns boolean.
return
mixed
public function singleOrNull(callable $func = null) { return $this->getSingle($func, false); }
Linq
__construct
aggregate
all
any
average
chunk
concat
contains
count
distinct
each
elementAt
elementAtOrNull
except
first
firstOrNull
from
getFirst
getIterator
getLast
getSelectIteratorOrInnerIterator
getSingle
getValueAt
getWhereIteratorOrInnerIterator
groupBy
intersect
last
lastOrNull
max
min
ofType
order
orderBy
orderByDescending
range
select
selectMany
single
singleOrNull
skip
sum
take
toArray
where