diff --git a/PhpCollection.php b/PhpCollection.php index a958098..8c256ff 100644 --- a/PhpCollection.php +++ b/PhpCollection.php @@ -368,3 +368,11 @@ public function some($function) return $this->contains($function); } } + + +if(!function_exists('collect')) { + function collect($data) + { + return PhpCollection::collect($data); + } +} \ No newline at end of file