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
FOF30
Utils
Collection
toJson
FOF30\Utils\Collection::toJson PHP Method
Collection Class Documentation
Show file
Open project: akeeba/fof
toJson()
public
method
Get the collection of items as JSON.
public
toJson
(
integer
$options
) :
string
$options
integer
return
string
public function toJson($options = 0) { return json_encode($this->toArray(), $options); }
Collection
__construct
__toString
all
collapse
count
diff
each
fetch
filter
first
flatten
forget
get
getArrayableItems
getCachingIterator
getIterator
groupBy
has
implode
intersect
isEmpty
jsonSerialize
last
lists
make
map
merge
offsetExists
offsetGet
offsetSet
offsetUnset
pop
prepend
push
put
random
reduce
reset
reverse
shift
slice
sort
sortBy
sortByDesc
splice
sum
take
toArray
toJson
transform
unique
valueRetriever
values