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
Pinq
Traversable
first
Pinq\Traversable::first PHP Method
Traversable Class Documentation
Show file
Open project: timetoogo/pinq
first()
public
method
public
first
( )
public function first() { foreach ($this->elements as $value) { return $value; } return null; }
Traversable
__construct
aggregate
all
any
append
asArray
asCollection
asOrderedMap
asTraversable
average
constructScopedSelf
contains
count
difference
except
factory
first
from
getIterator
getIteratorScheme
getSource
getTrueIterator
groupBy
groupJoin
implode
indexBy
intersect
isEmpty
isSource
iterate
join
keys
last
mapIterator
maximum
minimum
offsetExists
offsetGet
offsetSet
offsetUnset
orderBy
orderByAscending
orderByDescending
reindex
scopedSelfFactory
select
selectMany
skip
slice
sum
take
thenBy
thenByAscending
thenByDescending
union
unique
validateIsOrdered
where
whereIn