Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Fusonic
Linq
Linq
single
Fusonic\Linq\Linq::single PHP Method
Linq Class Documentation
Show file
Open project: fusonic/linq
single()
public
method
Returns the only element that satisfies a specified condition.
public
single
(
callable
$func
= null ) :
mixed
$func
callable
a func that returns boolean.
return
mixed
public function single(callable $func = null) { return $this->getSingle($func, true); }
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