php collection to array

Solutions on MaxInterview for php collection to array by the best coders in the world

showing results for - "php collection to array"
Esteban
26 Jul 2016
1//convert a collection toArray()
2$comments_collection = $post->comments()->get()->toArray()
3
Monica
07 Jul 2017
1$collection = new ArrayCollection($allQuestions);
2