Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php collection to array

//convert a collection toArray()
$comments_collection = $post->comments()->get()->toArray()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #collection #array
ADD COMMENT
Topic
Name
9+1 =